Make smart shutdown work in combination with Hot Standby/Streaming Replication.

Robert Haas <rhaas@postgresql.org>

Commit: 1c850fa80727180d03bdb6a8c2f672eeda7fa818
Author: Robert Haas <rhaas@postgresql.org>
Date: 2010-04-08T01:39:37Z
Releases: 9.0.0
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.

Files

PathChange+/−
doc/src/sgml/ref/pg_ctl-ref.sgml modified +3 −1
doc/src/sgml/runtime.sgml modified +4 −2
src/backend/postmaster/postmaster.c modified +35 −2