Commit fe233366 authored by Peter Eisentraut's avatar Peter Eisentraut

Fix compiler warning about format on Windows

On 64-bit Windows, pid_t is long long int, so a %d format isn't
enough.
parent 0e936a21
......@@ -366,7 +366,8 @@ WalReceiverMain(void)
if (wal_receiver_create_temp_slot)
{
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);
changed = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment