Thread: pgsql: Emit cascaded standby message on shutdown only when appropriate.

pgsql: Emit cascaded standby message on shutdown only when appropriate.

From
Simon Riggs
Date:
Emit cascaded standby message on shutdown only when appropriate.
Adds additional test for active walsenders and closes a race
condition for when we failover when a new walsender was connecting.

Reported and fixed bu Fujii Masao. Review by Heikki Linnakangas

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/dde70cc313683e47e71997759c6029b4220f71c0

Modified Files
--------------
src/backend/postmaster/postmaster.c |    5 +++--
src/backend/replication/walsender.c |   29 +++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 2 deletions(-)