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.96) (envelope-from ) id 1wBIYx-000vEH-2R for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Apr 2026 20:34:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wBIYu-00EUxd-2L for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Apr 2026 20:34:45 +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.96) (envelope-from ) id 1wBIYu-00EUxV-1Q for pgsql-hackers@lists.postgresql.org; Fri, 10 Apr 2026 20:34:45 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wBIYt-00000000PoX-1cXP for pgsql-hackers@lists.postgresql.org; Fri, 10 Apr 2026 20:34:45 +0000 Received: from phl-compute-08.internal (phl-compute-08.internal [10.202.2.48]) by mailfhigh.stl.internal (Postfix) with ESMTP id F37207A01D3; Fri, 10 Apr 2026 16:34:41 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Fri, 10 Apr 2026 16:34:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1775853281; x=1775939681; bh=1JX/w0hUAB Vz2cNJ1m/P8vjb4powjmjOcR14/mLb7Kw=; b=mWSKofmnQ9bhhPyKKQQjffGF9i KL9SllAfHDagnEmdnC6wCMroFDLDu89AWYnVdtr+4/IyqhtwlHJeGpQKG93BI44a cgnqYi0Zsl51XrvG0OxqwtwsSshndyqMz8pP8eoOqSOtj5fyiZDRt7v2Gto2Vc5P ZJfV95qxff3Pz16EyIT98w4y3xWNm8FR/lftTYAJDCEiBUjV3YJGBXBsXr7tH0en IYQxgb/VmVYFq+EfesHnujANynhkz+I1nq5Os6W+EsvNtDxracmoLobO3YOMX01z w4ih0fvhbHu804xv2syNt0Lijes6QD/2+hylHnYJmzhUs44vK12AoIcRFcSA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1775853281; x=1775939681; bh=1JX/w0hUABVz2cNJ1m/P8vjb4powjmjOcR1 4/mLb7Kw=; b=HoH+slUkGbmGh69XFHGnzCW2kq/FSWkwaXoOcTo+++0JO0G7vtT hMRKuSH1F5cKA4yQzIAFCZtmbOInA8kNEeivzey0rFk8g95MhptbP2/OwKjSDL5n O2hhY0IpHRGO5jfMRPO8KPSEznMANimp/6/+BKnIVgU6DKi35OvHaVIWu9o2KkFG 8vhIYueEyuwgbD45yeP/Rm3+zDEFCpTdo47HDLIWbw100lQuRXmOTwX0fi/MLvt9 ow5g4+ujZRsTJGJl2HoSpNk2n9eQMhGMskXl1dKvwScajtWQbtEoZ6mjyU890fR9 0IeEyNyGFgoSG1k1434DJG82cOFJHVDJWlA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdeftdefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeeipdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehguhhofh gvnhhglhhinhhugiesghhmrghilhdrtghomhdprhgtphhtthhopehtnhgurhifrghnghes ghhmrghilhdrtghomhdprhgtphhtthhopehprhihiigshiesthgvlhhsrghsohhfthdrtg homhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhg rhgvshhqlhdrohhrghdprhgtphhtthhopehpjhesihhllhhumhhinhgrthgvuggtohhmph huthhinhhgrdgtohhmpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Apr 2026 16:34:39 -0400 (EDT) Date: Sat, 11 Apr 2026 05:34:34 +0900 From: Michael Paquier To: Richard Guo Cc: Tender Wang , Justin Pryzby , pgsql-hackers@lists.postgresql.org, Paul Jungwirth , Tom Lane Subject: Re: pg17: XX000: no relation entry for relid 0 Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FWfzvdJPmG1pseWT" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --FWfzvdJPmG1pseWT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Apr 10, 2026 at 11:38:50PM +0900, Richard Guo wrote: > Nice catch. It seems that we need at least three branches to > reproduce this, so that there's a nested UNION ALL whose output type > doesn't match the parent's expected type. At the outer branch maybe > we can use NULL::bigint[] instead to be a little simpler. Indeed, three branches: $ git branch --contains 9391f7152 + REL_17_STABLE + REL_18_STABLE * master -- Michael --FWfzvdJPmG1pseWT Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmnZXtoACgkQnvQgOdby QH2S3w//fAFtRPYB7Eiofe5rzHVSiffvl5IuG+dBZQ/5PICPoayG9QbCwu58D45/ dnCvhVbcQTHRhZqPPH8n5zZ4oEZM+DmPNsbbWJ0SlAETwWyCAxhm/UnuLh/hKfFi jeqYBVRnipL+kyNOCBZDqQ9XiDu+aFlRVRwgfhqxCdfFBcMYlLffKjNcgaVV0Zd5 /5m4pCPVBD+oX1ji0swKDQHHCrVA5FAPbL9rD3Tx/xWMu4Dacn5lFw5ARTqZFApR j4FTSbeiYfHwk7907pifn8UdPBR+CM9Yx+QAfBBvUki/dOWyNIDjkVA0nWC2+yud 0VpMqqFxNbkfVVpXvrSu+nrnP5vmFQELLdZc9jbELfbb8GssRNl7ymQyDyLU6n0W DegUrAwm6M1yArfAIMrb79R0gqfhBBiSPyTytlYnut+QsJXoe0RgLKBQvOUXX/Y1 Jn9j6mPMhMbqevk5s3OEE39XPO9m1Y4jTM0wbeZLTSMabwQzw7RzU9RIBrjG/Agz TAAB6wj9NYbnOmvVhyftVrmNwxfi8WRUbkYsjCd3fRvD1FmvjFQRSDuUy1xGrfiZ xYsURbx5tNH+YcYYYSPb+ORHa5072h/UiLSevdBUWkeI38L1tWH1cvw/1/wYBOSK IfnZoCY5kJgoE5bDvZ2cy2UEiTNWrv4MpmY+OGb5rY/LYZnU5mE= =BA/q -----END PGP SIGNATURE----- --FWfzvdJPmG1pseWT--