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 1rDGUI-001T9g-5v for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Dec 2023 04:04:46 +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 1rDGUE-00ArYv-Qj for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Dec 2023 04:04:42 +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 1rDGUE-00ArYl-I2 for pgsql-bugs@lists.postgresql.org; Wed, 13 Dec 2023 04:04:42 +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.94.2) (envelope-from ) id 1rDGUB-00BjL0-WF for pgsql-bugs@lists.postgresql.org; Wed, 13 Dec 2023 04:04:41 +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 3BD44bUA2528431; Tue, 12 Dec 2023 23:04:37 -0500 From: Tom Lane To: Laurenz Albe cc: Thomas Munro , nik@postgres.ai, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18244: Corruption in indexes involving whole-row expressions In-reply-to: References: <18244-8a7897de2acd5a08@postgresql.org> Comments: In-reply-to Laurenz Albe message dated "Wed, 13 Dec 2023 04:55:00 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2528429.1702440277.1@sss.pgh.pa.us> Date: Tue, 12 Dec 2023 23:04:37 -0500 Message-ID: <2528430.1702440277@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > Should we forbid composite types in index declarations? Sounds posssible, > but very restrictive. That would make a lot of people very sad, I fear. I think a minimum answer could be to document that you might need to REINDEX such indexes after a change in the composite type. We could perhaps try to be more proactive, say by marking such indexes invalid. I think though that that would have deadlock problems as well as race conditions. Perhaps best to leave it at "reindex when necessary", especially in view of the tiny number of reports to date. regards, tom lane