Re: Some problems about cascading replication

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: Some problems about cascading replication
Дата
Msg-id CAHGQGwH29TPJ9Aq=r5Pm1MCjvwV8H3Q6DEs7+=YxqNo+RYzUTw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Some problems about cascading replication  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
On Tue, Aug 16, 2011 at 11:56 PM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> I think there's a race condition here. If a walsender is just starting up,
> it might not have registered itself as a walsender yet. It's actually been
> there before this patch to suppress the log message.

Right. To address this problem, I changed the patch so that "dead-end"
walsender (i.e., cascading walsender even though recovery is not in
progress) always emits the log message. This change would cause
duplicate log messages if the standby promotion is requested while
multiple walsenders including "dead-end" one are running. But since
this is less likely to happen, I don't think it's worth writing code to
suppress those duplicate log messages. Comments?

I attached the updated version of the patch.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

Вложения

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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Adjust total size in pg_basebackup progress report when reality
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Fix bogus comment that claimed that the new BACKUP METHOD line i