Re: pg_ctl promote wait

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: pg_ctl promote wait
Дата
Msg-id CANP8+jJXFKTGNXv34XOY07iy5OCAZppR45PLeosbqtZB=uLHZQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_ctl promote wait  (Andres Freund <andres@anarazel.de>)
Ответы Re: pg_ctl promote wait  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
On 18 February 2016 at 08:33, Andres Freund <andres@anarazel.de> wrote:
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.

+1
 
--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: a raft of parallelism-related bug fixes
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: Freeze avoidance of very large table.