Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sWZUT-00Fzcn-AL for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jul 2024 10:45:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sWZUR-003Uoz-7j for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jul 2024 10:44:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sWZUQ-003Uoq-73 for pgsql-bugs@lists.postgresql.org; Wed, 24 Jul 2024 10:44:59 +0000 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sWZUM-001D8D-Gt for pgsql-bugs@lists.postgresql.org; Wed, 24 Jul 2024 10:44:58 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 2C1281380655; Wed, 24 Jul 2024 06:44:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 24 Jul 2024 06:44:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1721817892; x= 1721904292; bh=nbIgcd/NXeTI+q//Ikj3ZErturjdyiZJCbLZbZEs5qQ=; b=r +zLh3Fk0jVggLIujegRcluPCMApGgxnyGrVMWWojPJymoR9hIOddVMNCw3SodQK4 UvAybzSgmWtsbnvwZ4ksc2D4sxtV45Dfz1psXmxPFvXE394JZLqiVaSIIiPRwlpj 5SB8fgFHMTRu8dfzuhT6GEguRUINXFkYGEsNUukslOq7cnwfLPn7uFh9wL/MbDz9 I++vpG7H8+8cGp+Hfu/MV83k6HxcUq2NqxbV3cV3jFmBjAVwrtFZEyTolzEAjcHc fXOdNmec3Z4w+Q0mRBp36HRmBi2VEtyqAdNNAcOiPii++eUi30UjOdL7rfu7DnRs nyT7UUFJJKtTL5ieGhT0g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddriedugdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkgggtugfgjgesthekre dttddtjeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgv segrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdektdffudfftd ffffehfffhjeejhffgieeuueekjeekfffgudffhfduffffueevnecuffhomhgrihhnpegv nhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg pdhnsggprhgtphhtthhopedt X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 24 Jul 2024 06:44:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1721817890; bh=g0iQyHMu+IDJvmBiJ6Uw3T9u4hjQi5kNEa2KG6ymdKQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ZDzo/SKkL9XGaI9gcP6bmYC2jGsaenDA8KlhNaGz6eBQ/F7SlbkPDtNYTFtueusyL ERmfwYgm0Pr9Ur1tjFDsULpGjbDtgS3qPYKUgKISUKrhWSv/sojeDNOxmXpv+4LDrQ M8UtKClbia1JE1XSfpf4F9CkipRq3ZrxAZANfsPHOJ3OdIjVtDVfKQOZl5oCj3iNE4 qu5rozQCgWdYG7IdNkA2Zh4VuzsGSyPd098ca1lJ9MfBfY774/Y1uizbKiEGxG0B45 vTeQ5YR6SCwHOh2Mtzjuc47+uwmkn86JvlbthrRzLMRdanXtjsLAI1yWhPIKYtd/aA +nN+ObRe6TOKw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 21662A2; Wed, 24 Jul 2024 12:44:50 +0200 (CEST) Date: Wed, 24 Jul 2024 12:44:50 +0200 From: Alvaro Herrera To: Tom Lane Cc: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18550: Cross-partition update of a former inheritance parent leads to an assertion failure Message-ID: <202407241044.4auhbvwjgta2@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1080055.1721763503@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Jul-23, Tom Lane wrote: > Alvaro Herrera writes: > > Yeah, that seems to work. We can do that essentially for free in > > StorePartitionBound(), like in the attached (which was taken in 14). > > Looks sane. Thanks for looking. > > I'd add Alexander's script as a test too, somewhere near the bottom of > > create_table.sql. > > Personally I'd include this in the existing alter_table.sql test case, > to save a few steps: Nice! Done that way. I didn't see the connection between the assertion failure and 8f4a6b9e4f5b, but I didn't spend much time on it. But I didn't see any reason not to backpatch this all the way down, either, so I did that. Thanks, Alexander, for reporting this. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ It does it in a really, really complicated way why does it need to be complicated? Because it's MakeMaker.