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 1uK6m3-00Dxjz-JZ for pgsql-hackers@arkaria.postgresql.org; Wed, 28 May 2025 02:44:11 +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 1uK6m1-00DUz9-SF for pgsql-hackers@arkaria.postgresql.org; Wed, 28 May 2025 02:44:09 +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 1uK6m1-00DUyV-3j for pgsql-hackers@lists.postgresql.org; Wed, 28 May 2025 02:44:09 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uK6lx-000Tbr-2v for pgsql-hackers@lists.postgresql.org; Wed, 28 May 2025 02:44:08 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 041BF114014F; Tue, 27 May 2025 22:44:03 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Tue, 27 May 2025 22:44:04 -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=fm1; t=1748400243; x=1748486643; bh=z+P3Jrlsdm a8bsdhQB94GUc041esgJH6SrAdS3CtPIc=; b=LuIGH0Hp7WTHtuus4Rlu/zeclo Q5aqj0Ux0fZu2CGiZ+rLIekiTb59uNaFhNGO8yLypJSX4Ne/Mos5fHJ+dEgbZYgl u3QOW0KmJX7KwH//z907pzvxwIAVQZaBUD2piewui5qiQEd4TpJjdaAkLy143EkB eo+CaRAgWh0R6Wyjxg/T/Q+rzx9cHakUPCJfbYHxAhQBU2xBgZTJwjetNXgUMmOj vZpDH8vlrSRv51Q1H0p55Cwyw9VtzEliFBLclXfEd5j7DKM8XRyanR4/qQszu7If AlGb5tCpXSUUtOlHYBRThuwcQY1J11n/pvhcRxxP7CirGb2lSibCgembs26w== 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=fm1; t= 1748400243; x=1748486643; bh=z+P3Jrlsdma8bsdhQB94GUc041esgJH6SrA dS3CtPIc=; b=LHGrHgvFAHZ3jY+8comYj8cPyVxg+mAUYARRrIO+TuI1J0XgZKN d5CJLVFAd1Rx9rAvf5fiKDE5tLMqvGZwVN4vns/cPCHautpWoBqrXxk5HAbK9Ser REHkeNa6NBAgwWixXM0AKb1i9FNKMky9kB3rvigyxydDNbY2HiQQ7G4I5naiGllL g/7gL/gsRgkUts58pGPL8/xER+U3vrbFwIZHOFpzZ39oGVbnYxhV6csamPhUSnP7 YBUGaL/u3IdANqv8k37XsgiSWiRg6tHR0LOYN2t39Bplmgy9q+NM/L+/tc7PdOhO u56mHa0DA7T/XGyqJO0JUv/cSgrGWCUSMMQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgddvvddutdculddtuddrgeefvddrtd dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd dtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdejtddm necujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitg hhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeen ucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeffhfekueevteeigfduud evudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhnsggprhgtphhtthhope ekpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehnrghthhgrnhgusghoshhsrghr thesghhmrghilhdrtghomhdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruh hspdhrtghpthhtohepnhhishhhrgdrmhhoohhnugeguddvsehgmhgrihhlrdgtohhmpdhr tghpthhtohepvghulhgvrhesvghulhgvrhhtohdrtghomhdprhgtphhtthhopegrmhhith drkhgrphhilhgrudeisehgmhgrihhlrdgtohhmpdhrtghpthhtohepvgigtghluhhsihho nhesghhmrghilhdrtghomhdprhgtphhtthhopehjkhgrthiisehpohhsthhgrhgvshhqlh drohhrghdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhs thhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 27 May 2025 22:44:00 -0400 (EDT) Date: Wed, 28 May 2025 11:43:52 +0900 From: Michael Paquier To: Nathan Bossart Cc: Tom Lane , Nisha Moond , Euler Taveira , Amit Kapila , Alexander Lakhin , "Jonathan S. Katz" , PostgreSQL Hackers Subject: Re: Large expressions in indexes can't be stored (non-TOASTable) Message-ID: References: <910625.1745878759@sss.pgh.pa.us> <1055453.1745949714@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7bMiXI3b94CkgSlI" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --7bMiXI3b94CkgSlI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, May 27, 2025 at 03:02:52PM -0500, Nathan Bossart wrote: > Here is what I have staged for commit for the others. I'm hoping to push > these in the next couple of days. Thanks for the refreshed versions. Looks sensible to me overall. +static inline void +AssertHasSnapshotForToast(Relation rel) [...] + /* + * Commit 16bf24e fixed accesses to pg_replication_origin without a + * an active snapshot by removing its TOAST table. On older branches, + * these bugs are left in place. Its only varlena column is roname (the + * replication origin name), so this is only a problem if the name + * requires out-of-line storage, which seems unlikely. In any case, + * fixing it doesn't seem worth extra code churn on the back-branches. + */ + if (RelationGetRelid(rel) == ReplicationOriginRelationId) + return; As of the back-branches but not HEAD, this shortcut makes sense. -- Michael --7bMiXI3b94CkgSlI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmg2eGgACgkQnvQgOdby QH3H0g//W6/MdxX8XvKNy0Lov032gT7ID9Bf+maHiXK47/3onD3ZfZAVSiy9soB4 yaDUdWIY2NofFRW8GHKHjom02ztPIXEEyqHTuKD/BvPtqV3Vx2gXr2ajk0yPweaT VJ9EVYu25xvcybOh+zOq4YapTJJVl/ITCMv3LnEHico8eObiKPDXHpY7Arz7SnvX 2zOC0WHfd4tCBlKCDIo0U9mJu44LdhANJbDli0IMAjufS/1YwybTazTzrtWH7/nO fuV+dW2Hv+erR5N0XjeSNnWFDbH7x5KWG/O31GoUZlKDXROkdHeS3z13WNuu6TaI V9E+kNV4rzWmskGN6M7yZ1SBXey+sDUieH1nyxtnFbLEc5oaTUlTX+Ly6ao4rykY obb5BCFdIAqb2wENcZtJMCa7frEurjrvuGLO4rRYH2jRussOvchNDiv0YKI8NEmG MPy9+nuKmSjG6dtCsjPcEsd9aCPHVC8HYvde2XfhMCzfy3iSlahfH1+/X7vXoZmi yHcwgWUCKVG4eC1EqbQPUwtULHUbe8CGn+n3OgMQwOOqm6JwHvwnHqhC4FAU7xkU gE2pWHfRqAMnlipBqFtC5mbJKzghHvhcJjL5klyzOyoUNKu8NAl0lnbRbH5yGmVk gM5LcjDSrD6l1WJE+M03PRN3Kt+JTozjn2yIeYAwTG7Z416xGcI= =tUO6 -----END PGP SIGNATURE----- --7bMiXI3b94CkgSlI--