Re: master in standby mode croaks - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: master in standby mode croaks
Date
Msg-id s2n3f0b79eb1004181858rbd0936f7kac5fb79c4879b20e@mail.gmail.com
Whole thread Raw
In response to Re: master in standby mode croaks  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: master in standby mode croaks  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Sun, Apr 18, 2010 at 7:52 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> On Sat, Apr 17, 2010 at 6:41 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
>> On Sat, 2010-04-17 at 17:44 -0400, Robert Haas wrote:
>>
>>> > I will change the error message.
>>>
>>> I gave a good deal of thought to trying to figure out a cleaner
>>> solution to this problem than just changing the error message and
>>> failed.  So let's change the error message.  Of course I'm not quite
>>> sure what we should change it TO, given that the situation is the
>>> result of an interaction between three different GUCs and we have no
>>> way to distinguish which one(s) are the problem.
>>
>> "You need all three" covers it.
>
> Actually you need standby_connections and either archive_mode=on or
> max_wal_senders>0, I think.

Right.

First of all, I wonder why the latter two need to affect the decision of
whether additional information is written to WAL for HS. How about just
removing XLogIsNeeded() condition from XLogStandbyInfoActive()?

Regards,

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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: shared_buffers documentation
Next
From: Takahiro Itagaki
Date:
Subject: Re: [GENERAL] trouble with to_char('L')