pg_ctl: Add wait option to promote action

Peter Eisentraut <peter_e@gmx.net>

Commit: e7010ce4794a4c12a6a8bfb0ca1de49b61046847
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2016-09-21T16:00:00Z
Releases: 10.0
pg_ctl: Add wait option to promote action

When waiting is selected for the promote action, look into pg_control
until the state changes, then use the PQping-based waiting until the
server is reachable.

Reviewed-by: Michael Paquier <michael.paquier@gmail.com>

Files

PathChange+/−
doc/src/sgml/ref/pg_ctl-ref.sgml modified +23 −6
src/bin/pg_ctl/pg_ctl.c modified +32 −13
src/bin/pg_ctl/t/003_promote.pl modified +17 −1

Documentation touched