Re: The way to know whether the standby has caught up with the master

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: The way to know whether the standby has caught up with the master
Дата
Msg-id BANLkTimopsxjt-OPr7Z62D7q7c_-E4Ao=g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: The way to know whether the standby has caught up with the master  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: The way to know whether the standby has caught up with the master
Список pgsql-hackers
On Wed, May 25, 2011 at 6:16 AM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:

>> To achieve that, I'm thinking to change walsender so that, when the
>> standby
>> has caught up with the master, it sends back the message indicating that
>> to
>> the standby. And I'm thinking to add new function (or view like
>> pg_stat_replication)
>> available on the standby, which shows that info.
>
> By the time the standby has received that message, it might not be caught-up
> anymore because new WAL might've been generated in the master already.

AFAICS, this is an exact case of the Byzantine General's problem.

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


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Proposal: Another attempt at vacuum improvements
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Nested CASE-WHEN scoping