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 1slvMc-001za7-UX for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Sep 2024 19:08:23 +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 1slvMb-00Dwne-4x for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Sep 2024 19:08:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1slvMa-00Dwld-RG for pgsql-hackers@lists.postgresql.org; Wed, 04 Sep 2024 19:08:21 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1slvMU-0009pw-Tb; Wed, 04 Sep 2024 19:08:19 +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 484J8D391679757; Wed, 4 Sep 2024 15:08:13 -0400 From: Tom Lane To: Nathan Bossart cc: "Jonathan S. Katz" , PostgreSQL Hackers Subject: Re: Large expressions in indexes can't be stored (non-TOASTable) In-reply-to: References: Comments: In-reply-to Nathan Bossart message dated "Wed, 04 Sep 2024 13:40:49 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1679755.1725476893.1@sss.pgh.pa.us> Date: Wed, 04 Sep 2024 15:08:13 -0400 Message-ID: <1679756.1725476893@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > Thanks to commit 96cdeae, only a few catalogs remain that are missing TOAST > tables: pg_attribute, pg_class, pg_index, pg_largeobject, and > pg_largeobject_metadata. I've attached a short patch to add one for > pg_index, which resolves the issue cited here. This passes "check-world" > and didn't fail for a few ad hoc tests (e.g., VACUUM FULL on pg_index). I > haven't spent too much time investigating possible circularity issues, but > I'll note that none of the system indexes presently use the indexprs and > indpred columns. Yeah, the possibility of circularity seems like the main hazard, but I agree it's unlikely that the entries for system indexes could ever need out-of-line storage. There are many other things that would have to be improved before a system index could use indexprs or indpred. regards, tom lane