aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/view.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2013-10-18 10:21:25 -0400
committerRobert Haas <rhaas@postgresql.org>2013-10-18 10:23:11 -0400
commit523beaa11bdf6a9864e8978b467ed586b792c9ca (patch)
tree69243f9df4616e5d79cee9e48dc9943fa495df16 /src/backend/commands/view.c
parentc2316dcda1cd057d7d4a56e3a51e3f8f0527e906 (diff)
downloadpostgresql-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