From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: 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 12:50:06 -0400
Message-ID: <6395.1536684606@sss.pgh.pa.us> (raw)
In-Reply-To: <20180911163311.5jnchfihqrrrz4nq@alap3.anarazel.de>
References: <CANP8+jLttaWVs+Dn+inyrqB4attSKaywavFEkOCO5eQN91DT8A@mail.gmail.com>
<22379.1536675935@sss.pgh.pa.us>
<CA+Tgmobu67L=9Y9NwxCLy5CzZUrBJ_UO1SOU_eiGf=N-+9heRQ@mail.gmail.com>
<CANP8+jL8qfE+dnGuC6ySBX_cqoHy3TBJ=O6dOFX9dQCA5N_jTA@mail.gmail.com>
<20180911152929.7xo4qgb3eyz6djfu@alap3.anarazel.de>
<28427.1536681824@sss.pgh.pa.us>
<20180911161232.d6ajdhkbss7vdeky@alap3.anarazel.de>
<29306.1536682739@sss.pgh.pa.us>
<20180911162037.7nbfsr5gaaaramjg@alap3.anarazel.de>
<4997.1536683204@sss.pgh.pa.us>
<20180911163311.5jnchfihqrrrz4nq@alap3.anarazel.de>
Andres Freund <andres@anarazel.de> writes:
> On 2018-09-11 12:26:44 -0400, Tom Lane wrote:
>> Well, there remains the fact that we've seen no field reports that seem
>> to trace to failure-to-acquire-AEL since 9.6 came out. So arguing that
>> this *could* be a probable scenario fails to comport with the available
>> evidence.
> It might even be that we've seen reports of this, but didn't attribute
> the errors correctly.
Yeah, that's certainly possible. One good thing about the change I'm
recommending is that the symptom would be very clear (ie, "out of shared
memory" from the startup process). If we do start getting reports of it,
we'd know where the problem is.
>> My inclination is to fix it as I've suggested and wait to see if there
>> are field complaints before expending a whole lot of effort to create
>> a better solution. In any case, I am not willing to create that better
>> solution myself, and neither is Robert; are you?
> On master I'd be ok with that, but on the backbranches that seems like
> playing with user's setups.
I am not sure which part of "I will not fix this" you didn't understand.
*If* we get clear evidence that it happens for a non-negligible number
of users, I might be willing to reconsider. Right now my reading of
the evidence is that it hasn't, and won't; so I judge that putting in
a complex mechanism to try to cope with the situation would be a net
loss for reliability. Back-patching such a mechanism seems like it'd
be an even worse engineering decision.
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, andres@anarazel.de, simon@2ndquadrant.com, robertmhaas@gmail.com, jeff.janes@gmail.com
Subject: Re: StandbyAcquireAccessExclusiveLock doesn't necessarily
In-Reply-To: <6395.1536684606@sss.pgh.pa.us>
References: <CANP8+jLttaWVs+Dn+inyrqB4attSKaywavFEkOCO5eQN91DT8A@mail.gmail.com> <22379.1536675935@sss.pgh.pa.us> <CA+Tgmobu67L=9Y9NwxCLy5CzZUrBJ_UO1SOU_eiGf=N-+9heRQ@mail.gmail.com> <CANP8+jL8qfE+dnGuC6ySBX_cqoHy3TBJ=O6dOFX9dQCA5N_jTA@mail.gmail.com> <20180911152929.7xo4qgb3eyz6djfu@alap3.anarazel.de> <28427.1536681824@sss.pgh.pa.us> <20180911161232.d6ajdhkbss7vdeky@alap3.anarazel.de> <29306.1536682739@sss.pgh.pa.us> <20180911162037.7nbfsr5gaaaramjg@alap3.anarazel.de> <4997.1536683204@sss.pgh.pa.us> <20180911163311.5jnchfihqrrrz4nq@alap3.anarazel.de> <6395.1536684606@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