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 1say5S-00Ce1l-8v for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Aug 2024 13:49:22 +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 1say5Q-00E4OF-E3 for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Aug 2024 13:49:20 +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 1say5Q-00E4O4-5l for pgsql-bugs@lists.postgresql.org; Mon, 05 Aug 2024 13:49:20 +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 1say5N-003E2m-Pa for pgsql-bugs@lists.postgresql.org; Mon, 05 Aug 2024 13:49:18 +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 475DnBEb1063127; Mon, 5 Aug 2024 09:49:11 -0400 From: Tom Lane To: jiangdian_m@163.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18567: ERROR: cache lookup failed for attribute 1 of relation 74580 In-reply-to: <18567-1a31eee4c9ca4325@postgresql.org> References: <18567-1a31eee4c9ca4325@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 05 Aug 2024 13:25:27 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1063125.1722865751.1@sss.pgh.pa.us> Date: Mon, 05 Aug 2024 09:49:11 -0400 Message-ID: <1063126.1722865751@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > [ pg_get_indexdef can fail on a concurrently-dropped index ] I'm not terribly concerned about this. In any case, the only fix I can think of is for pg_get_indexdef to take a lock on the index, which seems like a cure considerably worse than the disease. regards, tom lane