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 1qYDoD-0015TQ-FT for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Aug 2023 22:55:41 +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 1qYDoB-00BiD5-H0 for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Aug 2023 22:55:39 +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 1qYDoB-00BiBF-7n for pgsql-bugs@lists.postgresql.org; Mon, 21 Aug 2023 22:55:39 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qYDo8-000FnM-4I for pgsql-bugs@lists.postgresql.org; Mon, 21 Aug 2023 22:55:38 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 1B4A0320091A; Mon, 21 Aug 2023 18:55:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 21 Aug 2023 18:55:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1692658532; x=1692744932; bh=SS k2RwbOiF/tj2IGrlfs8W00szDq0ah0PMZG2ktsZjc=; b=RZ1/pFDgRM9AVEKbfW noGDPbvkagf+zA91lKwfHu0Dyr8+b9k8PgQWrUU7oReX2CcgWKGASWYt2URHu+jt Hlu/n64EWR/sca/Nd2CJuF57bBKjS9MAd+/pIq2M21SbAJRD/N9DaDnObJZiax44 0qhzv+z2XFZePGm7cqISQ3abHhZXFUJmSJbfFlU4C9JEu4ynUFzeWdilL+2pDE9P cWdVwSVupCZcA8Fj7stFrvRtYveGRbtfWeyfUIm7U9yJsZxNPOnfylbPrT2ZUj/2 /u8UxkBLTe1FFolUPYJHk3hRollHMUSdvjCF1+AjkgDCqhwwckZftDiO84N6vViN 38Xw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1692658532; x=1692744932; bh=SSk2RwbOiF/tj 2IGrlfs8W00szDq0ah0PMZG2ktsZjc=; b=fxm5+eDPWFvnYqgeBErP9NMHCS8Z3 K/TsNo+XHjHw0+EzCGYIN9KJ6EJ7USqQelWAJY2bBfZR/FQKla+hXwFVDzEWKhhF BOfjVmZmYcZ6GohYHsz+ugSOasCMsMsSdPMXdGYJi9b0bUR80Jjkr/zm1YM7xEiJ Pthc8wfheI7ITLIInJoc6Aum3SiTK0HISF6tnvtUEwkkha6Gymd1XiUn88ZBhp6b zZtp5KA0I0a+gKVrqPhP3aBwt1pu+YGriIcFrXHKC7qm7+CBVUHG0GfDsyKco1Vs Mlvk1yJ624pTRLVHIrA9D8WG8ToCDBx/ILjBJ7DgLEECCDXbW04zb9RjQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddvtddgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 21 Aug 2023 18:55:31 -0400 (EDT) Date: Tue, 22 Aug 2023 07:55:28 +0900 From: Michael Paquier To: Andres Freund Cc: Wyatt Alt , pgsql-bugs@lists.postgresql.org Subject: Re: cache lookup failed dropping public schema with trgm index Message-ID: References: <20230821223610.glmwmdsv2xofihiu@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kDBW0m/bppDwkOrL" Content-Disposition: inline In-Reply-To: <20230821223610.glmwmdsv2xofihiu@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --kDBW0m/bppDwkOrL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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). > Now, this isn't a real issue in practice (without such a debugging statement, > which likely can't work in some cases), but I strongly suspect that it > indicates a scheduling order issue that's more widespread. Despite, I think, > correct dependencies, we end up with a topologically inconsistent drop > order. There aren't any cycles in the directed dependency graph from what I > can see. Yeah, guess so. I was first betting on a missing shared inval here. Now note that for example, this command works: psql -v ON_ERROR_STOP=1 -c 'create table foo(t text); create extension pg_trgm; create index on foo using gist(t gist_trgm_ops);create index on foo using gist(t gist_trgm_ops); drop schema public cascade;' -- Michael --kDBW0m/bppDwkOrL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmTj62AACgkQnvQgOdby QH23XhAAoKiTOUyfo0psdb5Rg+qJjAE4uazWQ5uJz7NdB3CtAfLvWuEzkFjtnNrx YRtZ9Mw3jmP9l2sHCPsW7BgWEIzUra0YQWzc1b8JimwfYJ6/GrTiY8PUR3X8/p25 U/hgOYyFtWGDBdz/lqzZsvYJcC5VdGkodh6isSiqWuf1B/P8bYNt8fpS/efYzWnO rybqGk/zX4hp+UwxuWTIQOkLQ/kayisoZdbZGGI45/dPlepZwLrGO8ThSJEYfhmt j0sk0UuhbLUlA7ATzliOnvJRmdadRh018pD8CDXjw16HT9wVkgnOthJBypocuge+ RaXLutVcPLUdCcxaruHocmueAPIQO990ggQod+Ej902NWpRZk+CAzNDe+vHH+jav IvfE2+7QUK6yJPjewaRMS/PtNtFvNf7pMyFden4OXVQcGevu6iSzzAeI+2242bUW D6Cq8t58GKJvtgmmD4o/MR6JOburcApTwHIPQWQMDS5wYW3JI3e+Xx3zih05ZZuv 7n5KRDCyTczBGptYUWRLagA0rrUP+/d8nb4D6g+s0ExX0agV71cwMOhKALGRLTY3 geaolWpStgDGexWUJ0s5QNjf8odhKap8Cm3uj0GF9j65M+ej/extmpV4nOjU4WZN rXDIuOzgABq/tIEjMUKWTesxUbg2kj/OfCidH3PSfTFkNrRiFsM= =mulD -----END PGP SIGNATURE----- --kDBW0m/bppDwkOrL--