pgsql: pg_ctl: Add wait option to promote action - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: pg_ctl: Add wait option to promote action
Date
Msg-id E1bmkJp-0007Pl-6y@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Delay updating control file to "in production"
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Make command_like output more compact