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 1u9W8C-002kwO-NY for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Apr 2025 21:35:17 +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 1u9W8A-003SZd-Ot for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Apr 2025 21:35:15 +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 1u9W8A-003SZU-FG for pgsql-hackers@lists.postgresql.org; Mon, 28 Apr 2025 21:35:15 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u9W89-0004by-1Q for pgsql-hackers@lists.postgresql.org; Mon, 28 Apr 2025 21:35:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 53SLZ85v905636; Mon, 28 Apr 2025 17:35:08 -0400 From: Tom Lane To: Nathan Bossart cc: Nisha Moond , Euler Taveira , Michael Paquier , Amit Kapila , Alexander Lakhin , "Jonathan S. Katz" , PostgreSQL Hackers Subject: Re: Large expressions in indexes can't be stored (non-TOASTable) In-reply-to: References: <18a111db-9f31-449c-a14b-61779a69f344@app.fastmail.com> <1503201.1745444021@sss.pgh.pa.us> Comments: In-reply-to Nathan Bossart message dated "Mon, 28 Apr 2025 16:29:21 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <905634.1745876108.1@sss.pgh.pa.us> Date: Mon, 28 Apr 2025 17:35:08 -0400 Message-ID: <905635.1745876108@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > On Wed, Apr 23, 2025 at 04:44:51PM -0500, Nathan Bossart wrote: >> On Wed, Apr 23, 2025 at 05:33:41PM -0400, Tom Lane wrote: >>> I don't see any comments in this patch that capture the real >>> reason for removing pg_replication_origin's TOAST table, >>> namely (IIUC) that we'd like to be able to access that catalog >>> without a snapshot. > I updated the comment atop the check in the misc_sanity test for system > tables with varlena columns but no toast table. If you were to reintroduce > pg_replication_origin's toast table, you'd have to at least fix the > expected output for this test, so the comment theoretically has a higher > chance of being seen. Possibly better idea: can we add something like Assert(!OidIsValid(reltoastrelid)) in the code that is making this assumption? regards, tom lane