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

From Robert Haas
Subject Re: master in standby mode croaks
Date
Msg-id p2s603c8f071004181904n77aca0cbq8bb45404d854df50@mail.gmail.com
Whole thread Raw
In response to Re: master in standby mode croaks  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: master in standby mode croaks  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
On Sun, Apr 18, 2010 at 9:58 PM, Fujii Masao <masao.fujii@gmail.com> wrote:
> 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()?

Bad idea, I think.  If XLogIsNeeded() is returning false and
XLogStandbyInfoActive() is returning true, the resulting WAL will
still be unusable for HS, at least AIUI.

...Robert


pgsql-hackers by date:

Previous
From: Takahiro Itagaki
Date:
Subject: Re: [GENERAL] trouble with to_char('L')
Next
From: Robert Haas
Date:
Subject: Re: cost_rescan (was: match_unsorted_outer() vs. cost_nestloop())