Make smart shutdown work in combination with Hot Standby/Streaming Replication.
authorRobert Haas <rhaas@postgresql.org>
Thu, 8 Apr 2010 01:39:37 +0000 (01:39 +0000)
committerRobert Haas <rhaas@postgresql.org>
Thu, 8 Apr 2010 01:39:37 +0000 (01:39 +0000)
commit1c850fa80727180d03bdb6a8c2f672eeda7fa818
tree246905862626a014a449187a6a7fb82193e90db4
parent2c0870ff7ab9bda44f39dd332836d0928afb2297
Make smart shutdown work in combination with Hot Standby/Streaming Replication.

At present, killing the startup process does not release any locks it holds,
so we must wait to stop the startup and walreceiver processes until all
read-only backends have exited.  Without this patch, the startup and
walreceiver processes never exit, so the server gets permanently stuck in
a half-shutdown state.

Fujii Masao, with review, docs, and comment adjustments by me.
doc/src/sgml/ref/pg_ctl-ref.sgml
doc/src/sgml/runtime.sgml
src/backend/postmaster/postmaster.c