From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@heroku.com>
Cc: Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Andres Freund <andres@anarazel.de>
Cc: Kevin Grittner <kgrittn@gmail.com>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>
Subject: Re: On conflict update & hint bits
Date: Sun, 23 Oct 2016 17:46:45 -0400
Message-ID: <30037.1477259205@sss.pgh.pa.us> (raw)
In-Reply-To: <CAM3SWZQbij-WS6V46QXJp43XyNrJhGQ7+VDMLX7r0m1BnH82dA@mail.gmail.com>
References: <57EE93C8.8080504@postgrespro.ru>
<CAM3SWZQXH4m-CQKsLeP-JeFuezMECJPTJc78EzHY0Z+kwevtLw@mail.gmail.com>
<CAM3SWZR6AN++h24e6y2NWETjMTCjXDbFgEifOss2jpfPEmqCdw@mail.gmail.com>
<31342.1477154327@sss.pgh.pa.us>
<CAM3SWZTj9BHu91uS8J6D8VCL2v19ZOK1JWO-ghuLuWQTTv0hNw@mail.gmail.com>
<23481.1477255321@sss.pgh.pa.us>
<CAM3SWZQbij-WS6V46QXJp43XyNrJhGQ7+VDMLX7r0m1BnH82dA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Peter Geoghegan <pg@heroku.com> writes:
> On Sun, Oct 23, 2016 at 1:42 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> "Rarely" is not "never". A bigger problem though is that heap_fetch
>> does more than just lock the buffer: there are also PredicateLockTuple
>> and CheckForSerializableConflictOut calls in there. It's possible that
>> those are no-ops in this usage (because after all we already fetched
>> the tuple once), or maybe they're even desirable because they would help
>> resolve Kevin's concerns. But it hasn't been analyzed and so I'm not
>> prepared to risk a behavioral change in this already under-tested area
>> the day before a release wrap.
> I'm surprised at how you've assessed the risk here.
What's bothering me is (a) it's less than 24 hours to release wrap and
(b) this patch changes SSI-relevant behavior and hasn't been approved
by Kevin. I'm not familiar enough with that logic to commit a change
in it on my own authority, especially with so little time for problems
to be uncovered.
I'm okay with adding an explicit buffer lock/unlock pair, and in fact
plan to go have a look at that in a bit. I'm not okay with doing a
refactoring that might change the behavior in more ways than that
under these circumstances.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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, pg@heroku.com, k.knizhnik@postgrespro.ru, andres@anarazel.de, kgrittn@gmail.com, thomas.munro@enterprisedb.com
Subject: Re: On conflict update & hint bits
In-Reply-To: <30037.1477259205@sss.pgh.pa.us>
References: <57EE93C8.8080504@postgrespro.ru> <CAM3SWZQXH4m-CQKsLeP-JeFuezMECJPTJc78EzHY0Z+kwevtLw@mail.gmail.com> <CAM3SWZR6AN++h24e6y2NWETjMTCjXDbFgEifOss2jpfPEmqCdw@mail.gmail.com> <31342.1477154327@sss.pgh.pa.us> <CAM3SWZTj9BHu91uS8J6D8VCL2v19ZOK1JWO-ghuLuWQTTv0hNw@mail.gmail.com> <23481.1477255321@sss.pgh.pa.us> <CAM3SWZQbij-WS6V46QXJp43XyNrJhGQ7+VDMLX7r0m1BnH82dA@mail.gmail.com> <30037.1477259205@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