diff options
author | Robert Haas <rhaas@postgresql.org> | 2013-10-18 10:21:25 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2013-10-18 10:23:11 -0400 |
commit | 523beaa11bdf6a9864e8978b467ed586b792c9ca (patch) | |
tree | 69243f9df4616e5d79cee9e48dc9943fa495df16 /src/backend/commands/view.c | |
parent | c2316dcda1cd057d7d4a56e3a51e3f8f0527e906 (diff) | |
download | postgresql-523beaa11bdf6a9864e8978b467ed586b792c9ca.tar.gz postgresql-523beaa11bdf6a9864e8978b467ed586b792c9ca.zip |
Provide a reliable mechanism for terminating a background worker.
Although previously-introduced APIs allow the process that registers a
background worker to obtain the worker's PID, there's no way to prevent
a worker that is not currently running from being restarted. This
patch introduces a new API TerminateBackgroundWorker() that prevents
the background worker from being restarted, terminates it if it is
currently running, and causes it to be unregistered if or when it is
not running.
Patch by me. Review by Michael Paquier and KaiGai Kohei.
Diffstat (limited to 'src/backend/commands/view.c')
0 files changed, 0 insertions, 0 deletions