Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKwzu-0006G3-0t for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Jul 2016 00:16:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bKwzt-0001gA-Jz for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Jul 2016 00:16:53 +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 1bKwzs-0001fP-LX for pgsql-bugs@postgresql.org; Thu, 07 Jul 2016 00:16:52 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bKwzq-0002H6-FO for pgsql-bugs@postgresql.org; Thu, 07 Jul 2016 00:16:51 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A0507206E6; Wed, 6 Jul 2016 20:16:49 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Wed, 06 Jul 2016 20:16:49 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=7FIa+S0Yml6io/isd76oy/m6tPw=; b=CnDgz RNbNls4tEZ9e90aFiZBgI4R0X4JTamHm02C2Zr4Gl6ldHgN4diBmKXbijh6tpmlN i8L2AsREbE9g0qFNZTHd+M2CvrsGGYO8HQpFMKWlsc//3PMZJtvi7b8JJ7lfq4ux CPxB0fU30FfTNukAjpHUpyc7QJxn3lu+CKyxHE= X-Sasl-enc: XOfZWHmvUG5ZW6bNepmADE3UDSTn5ifT+eUQdawCARBt 1467850609 Received: from intern.anarazel.de (somacentral1.static.monkeybrains.net [162.217.75.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 55B75F29FA; Wed, 6 Jul 2016 20:16:49 -0400 (EDT) Date: Wed, 6 Jul 2016 17:16:48 -0700 From: Andres Freund To: Peter Geoghegan Cc: Oskari Saarenmaa , Michael Paquier , Peter Tripp , Virendra Negi , pgsql-bugs Subject: Re: BUG #14150: Attempted to delete invisible tuple Message-ID: <20160707001648.yw4op27voytg7map@alap3.anarazel.de> References: <88248a24-47d1-d575-a63f-2b56a09f82e2@aiven.io> <62f3793f-13d6-567c-e512-f29d1fd76d00@aiven.io> <20160706233336.irsrxqct3lc5vcwp@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2016-07-06 17:14:30 -0700, Peter Geoghegan wrote: > On Wed, Jul 6, 2016 at 4:33 PM, Andres Freund wrote: > >> We didn't simply neglect to make heap_abort_speculative() consider > >> TOAST at all, though. > > > > Well, not quite, but nearly. Afaics it currently can only work if the > > toasted columns have been inserted by a different command, before the > > INSERT ON CONFLICT does anything. I don't see how it can work for newly > > inserted toast data. When heap_abort_speculative deletes toast data, > > when would it *ever* not fail if the same command executed the toast > > data? > > Why would the toasted data ever not be newly inserted in practice? Don't think so, atm. > And so, in simpler words, you believe that any > heap_abort_speculative() call to toast_delete() will cause this error > to be raised? Looks that way, yes. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs