Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jDvfY-0003WZ-OO for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 19:45:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDvfX-0001Nu-IU for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 19:44:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jDvfX-0001Nl-5Y for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 19:44:59 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDvfU-0003MC-SN for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 19:44:57 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 6337B5C3; Mon, 16 Mar 2020 15:44:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 16 Mar 2020 15:44:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=K18k6Eh9X0xtCBvdGO/TJeLWYWm fnXBBPWjfwWbljRk=; b=TVzhWn64myQ0v4ExDo/P3DACpeysr36PzhR8od6lGBV TQvDwFmL+UsbLhMILsZ6jD9vOyKSyUqDHEpB4PNNhUECJxxlTO7kkXCiWgWV9RSA TGvasJmjIhMR/PBhHFV3KBvN3Pgv19EVO7q5xbfj+eRZnIs76q14EBx5vSMTCtCw B+9PfUEpnDcJqe2VIvpQwHcppzTKq9Dr+jGanIJt6m2Rjfe7S09NFKIeWMVNZCLG 4UdIYOgNhOCZFQSD9kSagjIS6mXUx6ALF1V/iJ7k7SN6OPanPWzx9Iq/SZ4BbEIr TLBhUU/ax3WYDneqlKzP8sKzHR+0UwwMaBXLPDwe9aQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=K18k6E h9X0xtCBvdGO/TJeLWYWmfnXBBPWjfwWbljRk=; b=slRpJzIa3q1DFR+Fq532Ey cxyMJ44NtxrpKAQEvQaSlFTsYCfjtzWzfCfTNTuLT4QeqMkG0je5GhpaUf04vs8u FtnBIo6yQ/9uu8JnuQQ50PlzpEhCm9CvLd6ajju4BufVCOD5xoLhuAHIhU4WhaZR d040/dCaKmvUt5MbBdqLRf9quS9L5/CIAgVQZ6qXK3fpzhY9ahq2wrN5I0VhbT23 ByJekiYqxXpIoI735GnkEZCd113Y8jvxWDQKHUQCrJA5fhl8sAcDsAMIbHXsQfee OXokKgqwiWiQAJk1/DNTTiSycSsoaeUdSnZDrli06TjhgCmACSHabCDyQjGvAZqQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeffedguddvkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecukfhppe eijedrudeitddrvddujedrvdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 48F013280064; Mon, 16 Mar 2020 15:44:54 -0400 (EDT) Date: Mon, 16 Mar 2020 12:44:53 -0700 From: Andres Freund To: Tom Lane Cc: Karsten Hilbert , pgsql-general@lists.postgresql.org Subject: Re: unexpected chunk number 2 (expected 0) for toast value ... in pg_toast_18536 Message-ID: <20200316194453.tf3dlgovim6lpfbc@alap3.anarazel.de> References: <20200315182349.GL467@hermes.hilbert.loc> <20200315192037.GM467@hermes.hilbert.loc> <3b7214bd-d0b5-e66f-fd29-240f1eb56cdf@aklaver.com> <20200315202100.GO467@hermes.hilbert.loc> <537b5f42-efb7-6833-3c10-d2cf7cd05496@aklaver.com> <20200315221433.GQ467@hermes.hilbert.loc> <23239.1584317478@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23239.1584317478@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2020-03-15 20:11:18 -0400, Tom Lane wrote: > Unfortunately, it seems like you can't do that either, short of > hacking up the backend or writing some custom C code, because the > executor won't let you open a toast table as result relation :-(. > I wonder if we should change it to allow that when > allow_system_table_mods is true? This isn't the first time we've > seen people need to be able to do surgery on a toast table. I'd be mildly in favor. But it's considerably more than just the executor check that'd need to change. We don't the right thing for toast relations in plenty places right now, because we just check for RELKIND_RELATION - which will break junkvars etc. Greetings, Andres Freund