]> granicus.if.org Git - postgresql/commit
worker_spi: Initialize bgw_notify_pid in all cases.
authorRobert Haas <rhaas@postgresql.org>
Tue, 27 May 2014 02:56:28 +0000 (22:56 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 27 May 2014 02:56:28 +0000 (22:56 -0400)
commit616afee14d7e8d6690286aaf8a2a0a01168c378a
treef4adc4c6a805fb0ebb305f3d20ab4e19a0a8dda2
parent9d7ded0f4277f5c0063eca8e871a34e2355a8371
worker_spi: Initialize bgw_notify_pid in all cases.

Commit 090d0f2050647958865cb495dff74af7257d2bb4 added new code showing
how it can be useful to set bgw_notify_pid to a non-zero value, but it
failed to make sure that the existing call to RegisterBackgroundWorker
initialized the new field at all.

Report and patch by Shigeru Hanada.
contrib/worker_spi/worker_spi.c