On 04/16/2015 06:51 AM, Alvaro Herrera wrote:
> Seems reasonable, but why are you sleeping 1s if pg_ctl -w is in use? I
> thought the -w would wait until promotion has taken effect, so there's
> no need to sleep additional time.
-w is not supported with pg_ctl promote. Only start, stop and restart.
It's accepted, but it doesn't do anything. Which isn't very nice...
- Heikki