Skip to content

Commit 643f75c

Browse files
committed
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.
1 parent f0ee42d commit 643f75c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/postmaster/bgworker.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ BackgroundWorkerStateChange(void)
303303
rw->rw_worker.bgw_notify_pid = slot->worker.bgw_notify_pid;
304304
if (!PostmasterMarkPIDForWorkerNotify(rw->rw_worker.bgw_notify_pid))
305305
{
306-
elog(DEBUG1, "worker notification PID %u is not valid",
307-
rw->rw_worker.bgw_notify_pid);
306+
elog(DEBUG1, "worker notification PID %lu is not valid",
307+
(long) rw->rw_worker.bgw_notify_pid);
308308
rw->rw_worker.bgw_notify_pid = 0;
309309
}
310310

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy