pg_ctl: Add wait option to promote action
Peter Eisentraut <peter_e@gmx.net>
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
| Path | Change | +/− |
|---|---|---|
| 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 |