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 1qYEIy-0016bE-4I for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Aug 2023 23:27:28 +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 1qYEIw-00BwAM-Oq for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Aug 2023 23:27:26 +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 1qYEIw-00BwAD-Fb for pgsql-bugs@lists.postgresql.org; Mon, 21 Aug 2023 23:27:26 +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 1qYEIt-000Ecg-B3 for pgsql-bugs@lists.postgresql.org; Mon, 21 Aug 2023 23:27:25 +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 37LNRJVT2983697; Mon, 21 Aug 2023 19:27:19 -0400 From: Tom Lane To: Michael Paquier cc: Andres Freund , Wyatt Alt , pgsql-bugs@lists.postgresql.org Subject: Re: cache lookup failed dropping public schema with trgm index In-reply-to: References: <20230821223610.glmwmdsv2xofihiu@awork3.anarazel.de> Comments: In-reply-to Michael Paquier message dated "Tue, 22 Aug 2023 07:55:28 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2983695.1692660439.1@sss.pgh.pa.us> Date: Mon, 21 Aug 2023 19:27:19 -0400 Message-ID: <2983696.1692660439@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > On Mon, Aug 21, 2023 at 03:36:10PM -0700, Andres Freund wrote: >> It also seems to work without even involving a drop schema. Just dropping >> pg_trgm with cascade is sufficient. > FWIW, after a bisect I can see that 911e7020 is the origin of the > failure (`git bisect start b5d69b7 9e1c9f9` based on two merge-bases). Hmm. I see that 911e7020 modified pg_trgm's install script with +ALTER OPERATOR FAMILY gist_trgm_ops USING gist +ADD FUNCTION 10 (text) gtrgm_options (internal); I wonder whether that correctly adds a dependency to ensure the opfamily is dropped before the function. regards, tom lane