Content-Length: 262753 | pFad | http://github.com/postgrespro/postgres/commit/643f75ca9b5b3883395576aaf5246b67270a657b

E8 Fix unportable coding in BackgroundWorkerStateChange(). · postgrespro/postgres@643f75c · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/643f75ca9b5b3883395576aaf5246b67270a657b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy