Allow discovery of whether a dynamic background worker is running.

Robert Haas <rhaas@postgresql.org>

Commit: 090d0f2050647958865cb495dff74af7257d2bb4
Author: Robert Haas <rhaas@postgresql.org>
Date: 2013-08-28T18:08:13Z
Releases: 9.4.0
Allow discovery of whether a dynamic background worker is running.

Using the infrastructure provided by this patch, it's possible either
to wait for the startup of a dynamically-registered background worker,
or to poll the status of such a worker without waiting.  In either
case, the current PID of the worker process can also be obtained.
As usual, worker_spi is updated to demonstrate the new functionality.

Patch by me.  Review by Andres Freund.

Files