Commit 643f75ca authored by Tom Lane's avatar Tom Lane

Fix unportable coding in BackgroundWorkerStateChange().

PIDs aren't necessarily ints; our usual practice for printing them
is to explicitly cast to long.  Per buildfarm member rover_firefly.
parent f0ee42d5
...@@ -303,8 +303,8 @@ BackgroundWorkerStateChange(void) ...@@ -303,8 +303,8 @@ BackgroundWorkerStateChange(void)
rw->rw_worker.bgw_notify_pid = slot->worker.bgw_notify_pid; rw->rw_worker.bgw_notify_pid = slot->worker.bgw_notify_pid;
if (!PostmasterMarkPIDForWorkerNotify(rw->rw_worker.bgw_notify_pid)) if (!PostmasterMarkPIDForWorkerNotify(rw->rw_worker.bgw_notify_pid))
{ {
elog(DEBUG1, "worker notification PID %u is not valid", elog(DEBUG1, "worker notification PID %lu is not valid",
rw->rw_worker.bgw_notify_pid); (long) rw->rw_worker.bgw_notify_pid);
rw->rw_worker.bgw_notify_pid = 0; rw->rw_worker.bgw_notify_pid = 0;
} }
......
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