mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Fix compiler warning about format on Windows
On 64-bit Windows, pid_t is long long int, so a %d format isn't enough.
This commit is contained in:
@@ -366,7 +366,8 @@ WalReceiverMain(void)
|
|||||||
if (wal_receiver_create_temp_slot)
|
if (wal_receiver_create_temp_slot)
|
||||||
{
|
{
|
||||||
snprintf(slotname, sizeof(slotname),
|
snprintf(slotname, sizeof(slotname),
|
||||||
"pg_walreceiver_%d", walrcv_get_backend_pid(wrconn));
|
"pg_walreceiver_%lld",
|
||||||
|
(long long int) walrcv_get_backend_pid(wrconn));
|
||||||
|
|
||||||
walrcv_create_slot(wrconn, slotname, true, 0, NULL);
|
walrcv_create_slot(wrconn, slotname, true, 0, NULL);
|
||||||
changed = true;
|
changed = true;
|
||||||
|
Reference in New Issue
Block a user