Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byQbg-0000g0-FD for pgsql-hackers@arkaria.postgresql.org; Sun, 23 Oct 2016 21:47:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1byQbf-0001th-Fo for pgsql-hackers@arkaria.postgresql.org; Sun, 23 Oct 2016 21:47:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1byQbd-0001sM-IC for pgsql-hackers@postgresql.org; Sun, 23 Oct 2016 21:47:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1byQbW-0008Fe-M8 for pgsql-hackers@postgresql.org; Sun, 23 Oct 2016 21:47:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u9NLkjSA030038; Sun, 23 Oct 2016 17:46:45 -0400 From: Tom Lane To: Peter Geoghegan cc: Konstantin Knizhnik , PostgreSQL Hackers , Andres Freund , Kevin Grittner , Thomas Munro Subject: Re: On conflict update & hint bits In-reply-to: References: <57EE93C8.8080504@postgrespro.ru> <31342.1477154327@sss.pgh.pa.us> <23481.1477255321@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Sun, 23 Oct 2016 14:19:37 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30036.1477259205.1@sss.pgh.pa.us> Date: Sun, 23 Oct 2016 17:46:45 -0400 Message-ID: <30037.1477259205@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Peter Geoghegan writes: > On Sun, Oct 23, 2016 at 1:42 PM, Tom Lane 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