Re: pg_ctl promote wait - Mailing list pgsql-hackers

From Andres Freund
Subject Re: pg_ctl promote wait
Date
Msg-id 20160218083313.bkznpxl7sald7n7f@alap3.anarazel.de
Whole thread Raw
In response to pg_ctl promote wait  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: pg_ctl promote wait
Re: pg_ctl promote wait
List pgsql-hackers
Hi,

On 2016-02-17 21:47:50 -0500, Peter Eisentraut wrote:
> It would be nice if pg_ctl promote supported the -w (wait) option.
> 
> How could pg_ctl determine when the promotion has finished?

How about looking into pg_control? ControlFileData->state ought to have
the correct information.

Regards,

Andres



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: exposing pg_controldata and pg_config as functions
Next
From: Amit Langote
Date:
Subject: Re: a raft of parallelism-related bug fixes