Re: Some problems about cascading replication - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Some problems about cascading replication
Date
Msg-id CAHGQGwH29TPJ9Aq=r5Pm1MCjvwV8H3Q6DEs7+=YxqNo+RYzUTw@mail.gmail.com
Whole thread Raw
In response to Re: Some problems about cascading replication  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: [COMMITTERS] pgsql: Adjust total size in pg_basebackup progress report when reality
Next
From: Fujii Masao
Date:
Subject: Re: [COMMITTERS] pgsql: Fix bogus comment that claimed that the new BACKUP METHOD line i