Thread: pgsql: pg_ctl: Add wait option to promote action

pgsql: pg_ctl: Add wait option to promote action

From
Peter Eisentraut
Date:
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>

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/ref/pg_ctl-ref.sgml | 29 ++++++++++++++++++++------
src/bin/pg_ctl/pg_ctl.c          | 45 ++++++++++++++++++++++++++++------------
src/bin/pg_ctl/t/003_promote.pl  | 18 +++++++++++++++-
3 files changed, 72 insertions(+), 20 deletions(-)