Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFMxn-0003KQ-Em for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Jun 2016 14:47:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bFMxm-0004vk-H6 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Jun 2016 14:47:38 +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 1bFMxl-0004v4-7U for pgsql-hackers@postgresql.org; Tue, 21 Jun 2016 14:47:37 +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 1bFMxi-0004lf-R8 for pgsql-hackers@postgresql.org; Tue, 21 Jun 2016 14:47:35 +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 u5LElU1e010076; Tue, 21 Jun 2016 10:47:30 -0400 From: Tom Lane To: Robert Haas cc: Andres Freund , Thomas Munro , Alvaro Herrera , Amit Kapila , Stephen Frost , Michael Paquier , Masahiko Sawada , "pgsql-hackers@postgresql.org" Subject: Re: Reviewing freeze map code In-reply-to: References: <20160620193302.s4dbul6japgar5eg@alap3.anarazel.de> <20160620202453.zg66rvbhmvzl7ihn@alap3.anarazel.de> <20160620215943.73hekh5phsq65uk5@alap3.anarazel.de> Comments: In-reply-to Robert Haas message dated "Tue, 21 Jun 2016 10:38:10 -0400" Date: Tue, 21 Jun 2016 10:47:30 -0400 Message-ID: <10075.1466520450@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 Robert Haas writes: > On Mon, Jun 20, 2016 at 5:59 PM, Andres Freund wrote: >> Consider what happens if we, after restarting at l2, notice that we >> can't actually insert, but return in the !HeapTupleMayBeUpdated >> branch. > OK, I see what you mean. Still, that doesn't seem like such a > terrible cost. If you try to update a tuple and if it looks like you > can update it but then after TOASTing you find that the status of the > tuple has changed such that you can't update it after all, then you > might need to go set xmax = MyTxid() on all of the TOAST tuples you > created (whose CTIDs we could save someplace, so that it's just a > matter of finding them by CTID to kill them). ... and if you get an error or crash partway through that, what happens? 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