]> granicus.if.org Git - postgresql/commit
pg_ctl: Add wait option to promote action
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 6 Aug 2016 01:35:19 +0000 (21:35 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 21 Sep 2016 16:00:00 +0000 (12:00 -0400)
commite7010ce4794a4c12a6a8bfb0ca1de49b61046847
tree2f00a7ef5667274952a3a55101fcba7a98ae9a2c
parentebdf5bf7d1c97a926e2b0cb6523344c2643623c7
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>
doc/src/sgml/ref/pg_ctl-ref.sgml
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/t/003_promote.pl