diff options
author | Robert Haas <rhaas@postgresql.org> | 2013-08-28 14:08:13 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2013-08-28 14:08:13 -0400 |
commit | 090d0f2050647958865cb495dff74af7257d2bb4 (patch) | |
tree | bcebc38e72a0c90d8cf3c94d00b026e48887075e /src/backend/commands/async.c | |
parent | c9e2e2db5c2090a880028fd8c1debff474640f50 (diff) | |
download | postgresql-090d0f2050647958865cb495dff74af7257d2bb4.tar.gz postgresql-090d0f2050647958865cb495dff74af7257d2bb4.zip |
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.
Diffstat (limited to 'src/backend/commands/async.c')
-rw-r--r-- | src/backend/commands/async.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c index f7ebd1a650d..6414291ef7a 100644 --- a/src/backend/commands/async.c +++ b/src/backend/commands/async.c @@ -207,8 +207,6 @@ typedef struct QueueBackendStatus QueuePosition pos; /* backend has read queue up to here */ } QueueBackendStatus; -#define InvalidPid (-1) - /* * Shared memory state for LISTEN/NOTIFY (excluding its SLRU stuff) * |