Re: pg_ctl promote wait

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: pg_ctl promote wait
Дата
Msg-id 20160218083313.bkznpxl7sald7n7f@alap3.anarazel.de
обсуждение исходный текст
Ответ на pg_ctl promote wait  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: pg_ctl promote wait  (Simon Riggs <simon@2ndQuadrant.com>)
Re: pg_ctl promote wait  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: exposing pg_controldata and pg_config as functions
Следующее
От: Amit Langote
Дата:
Сообщение: Re: a raft of parallelism-related bug fixes