From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: StandbyAcquireAccessExclusiveLock doesn't necessarily
Date: Tue, 11 Sep 2018 10:25:35 -0400
Message-ID: <22379.1536675935@sss.pgh.pa.us> (raw)
In-Reply-To: <CANP8+jLttaWVs+Dn+inyrqB4attSKaywavFEkOCO5eQN91DT8A@mail.gmail.com>
References: <6202.1536359835@sss.pgh.pa.us>
<CA+TgmoasJ8xBt2F2QXRaf1q8+9auXFi2QT_fWMrWpCX837mkxw@mail.gmail.com>
<CANP8+jLttaWVs+Dn+inyrqB4attSKaywavFEkOCO5eQN91DT8A@mail.gmail.com>
Simon Riggs <simon@2ndquadrant.com> writes:
> On 10 September 2018 at 19:16, Robert Haas <robertmhaas@gmail.com> wrote:
>> On Fri, Sep 7, 2018 at 6:37 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> So my inclination is to remove the reportMemoryError = false parameter,
>>> and just let an error happen in the unlikely situation that we hit OOM
>>> for the lock table.
>> Wouldn't that take down the entire cluster with no restart?
> Please explain why you think that would be with no restart.
More to the point, what are our alternatives, and how much can we
really improve it? If the WAL stream requires more concurrent AELs
than the standby's lock table can hold, there isn't going to be any
solution short of manual intervention to increase the standby's
max_locks_per_transaction.
The point of the previous coding here was that perhaps there's some
range of number-of-locks-needed where kicking hot-standby queries
off of locks would allow recovery to proceed. However, it is (as
far as I know) unproven that that actually works, let alone is
effective enough to justify maintaining very-hard-to-test code for.
The field demand for such behavior can be measured by the number of
complaints we've had since breaking it in 9.6, namely zero.
So no, I do not want to re-implement and maintain that behavior on
the strength of just a guess that sometimes it might be useful.
If somebody else feels a burning passion for it, they can do the
work --- but I'd be inclined to argue that it'd be a HEAD-only
performance improvement, not a back-patchable bug fix.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, simon@2ndquadrant.com, robertmhaas@gmail.com, jeff.janes@gmail.com
Subject: Re: StandbyAcquireAccessExclusiveLock doesn't necessarily
In-Reply-To: <22379.1536675935@sss.pgh.pa.us>
References: <6202.1536359835@sss.pgh.pa.us> <CA+TgmoasJ8xBt2F2QXRaf1q8+9auXFi2QT_fWMrWpCX837mkxw@mail.gmail.com> <CANP8+jLttaWVs+Dn+inyrqB4attSKaywavFEkOCO5eQN91DT8A@mail.gmail.com> <22379.1536675935@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox