postgresql/src/include/postmaster
Robert Haas 523beaa11b 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.
2013-10-18 10:23:11 -04:00
..
autovacuum.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
bgworker.h Provide a reliable mechanism for terminating a background worker. 2013-10-18 10:23:11 -04:00
bgworker_internals.h Provide a reliable mechanism for terminating a background worker. 2013-10-18 10:23:11 -04:00
bgwriter.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
fork_process.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
pgarch.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
postmaster.h Allow discovery of whether a dynamic background worker is running. 2013-08-28 14:08:13 -04:00
startup.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
syslogger.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
walwriter.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00