Re: pg_last_xlog_receive_location()

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: pg_last_xlog_receive_location()
Дата
Msg-id AANLkTi=Juc6BpUfFM_dYMJxTEVisOAc3yC55tZxnFVeu@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_last_xlog_receive_location()  (Tatsuo Ishii <ishii@postgresql.org>)
Список pgsql-hackers
On Tue, Mar 29, 2011 at 9:08 PM, Tatsuo Ishii <ishii@postgresql.org> wrote:
>> In the primary server which was brought up from the standby,
>> pg_last_xlog_receive_location() returns non-NULL.
>
> Thanks.
>
> BTW, is there any reliable way to know a standby is promoting to
> primary?

if you know the server was a standby and pg_is_in_recovery() returns
false then it was promoted.
is that what you want to know? or i misunderstood you?

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte y capacitación de PostgreSQL


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Another swing at JSON
Следующее
От: 高增琦
Дата:
Сообщение: Re: crash-safe visibility map, take four