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 1qOVGg-0082qy-Ba for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Jul 2023 03:32:54 +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 1qOVGd-001wen-K5 for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Jul 2023 03:32:51 +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 1qOVGd-001wef-7X for pgsql-bugs@lists.postgresql.org; Wed, 26 Jul 2023 03:32:51 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qOVGa-001bcA-L6 for pgsql-bugs@lists.postgresql.org; Wed, 26 Jul 2023 03:32:50 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 72A0132008FA; Tue, 25 Jul 2023 23:32:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 25 Jul 2023 23:32:46 -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=fm3; t=1690342365; x=1690428765; bh=xA ieuXGjh4y0VOxayu5lLqC+muZICL/i21QwFeSs2XQ=; b=RPJSjwS7e9fYA4heea fg/hX/wdH4/ZISAILXoD63S/CXe/0gs9GXiNE18pgHfRdpCyCM//KoBzQjxNKSq+ QTDsm2yl+YYl/W3uLawhOG60NfyPZ3GwXBzsg1Bfi6mROWwwgUGikDfu0xQaevYr bl4PA9NlSoRNUdiw0AkICK8qzH2Zq2rL/CaWwKI4bclXXjYBKvMe+p5chvrYhUnM hx2dpNn5ef8AFLWHsjNi2JbzsB4ZSzsUUfPneDelbPIMY9CjEjL9v4ztmbXiUszk zsSJrnfx6pw5oCEA9AnlOUhbBDG9DIaHGggkO5/o78D9U7all391aTce5sNMeg8v Pwlw== 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=fm3; t=1690342365; x=1690428765; bh=xAieuXGjh4y0V Oxayu5lLqC+muZICL/i21QwFeSs2XQ=; b=vtXaojNNWT3Zg4ZL2Uka5q2CgYWYB x2tpmxukXked4tZ6pRiaVcocK4aFMPxPwzgUYm0VoiKTpKKx0Mna0e6qcMF4ztq+ p7LooLCM07i1E/cmdRR9Z+yub7WX33xYby6INgHI+/nnQq1hem5DCfBznnPWt10A YNPXAjfxIdOruTAZ5pJOPB0MbHVIkz4D/6L+7pYz3MaB4n6dwAWaM4W3rZfkyplA ysFszOio4qUb9Xo7KWCWr4wPB5BL20C63SYQjIkcC007+Z9S7EFnxd2Urc7C+ktq Hq//+Q9KA08m2MWr5gvEvuHWP8oMIpMphb/1rJWhaJajhLaOVhbZT8lzA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedriedugdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvf evuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrh hnpeetleeifedufffhhfdtteelgeeggeffhfekueevteeigfduudevudetgfegiedvjeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthh grvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Jul 2023 23:32:42 -0400 (EDT) Date: Wed, 26 Jul 2023 12:32:38 +0900 From: Michael Paquier To: Tom Lane Cc: Kyotaro Horiguchi , exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18014: Releasing catcache entries makes schema_to_xmlschema() fail when parallel workers are used Message-ID: References: <00e24aa6-5d03-99b6-ab41-495a35fc93f6@gmail.com> <982076.1689967306@sss.pgh.pa.us> <5bd4cbfe-fc71-c576-851d-3bb21ef5c080@gmail.com> <20230726.112923.27361680552823861.horikyota.ntt@gmail.com> <1821881.1690339317@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/fwWK64QdYvkXqPN" Content-Disposition: inline In-Reply-To: <1821881.1690339317@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --/fwWK64QdYvkXqPN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 25, 2023 at 10:41:57PM -0400, Tom Lane wrote: > As I said earlier, I think that's a purely coincidental "fix" for > this specific manifestation. Either SearchSysCacheExists followed > by a syscache lookup of the same tuple should be considered safe, > or it shouldn't. If it should be considered safe, we need to fix the > cache-clobber test scaffolding to not give a false positive. While if > it shouldn't, we need to get rid of that coding pattern, not apply > high-level band-aids that remove just one particular path to reaching > the problem. I'm not dead set on either answer at this point, but > I think those are the plausible alternatives. FWIW, I'm having a hard time thinking about a reason that we should not support SearchSysCacheExists()+lookup to be a valid pattern, even if the cache is clobbered. I am pretty sure that there are other code paths in the tree, not mentioned on this thread, that do exactly that (haven't checked, but indexcmds.c is one coming in mind). -- Michael --/fwWK64QdYvkXqPN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmTAk9YACgkQnvQgOdby QH3IVA//VdDRlOQsy8UUdTS662ED2na8eTroXf3NYF8INDRU0bQnGtgJ+qqZ3id9 zj4i3Zrry3q6UbI2qqK78pGhsTw9oSFQz5Jh2guh4uVgXU0mwnuf1+pF9nM+tac2 6juf7XlyJkO7cTiRN/vm1xCIU+5D/vBD6y0obxUCpqi4gR0N7CBWEhpGit/8LKVe 0mGq6ewMWo5vmds4Ss18+PQUdlYHpbphrsrFODDCamoh0PXjM8GK+a0jbP7cziVu TX5UuYc1Wpu7wgbilcZIUewMlo4pOx641pTFl16uUQdeljLjAYHIbGybVTNOMpsd VoLtzNWA/Ze6U7YCbhMZXCBRBIjb1F26uQhwHfx78PdWuKaJKojnHpyKjNzLXkn+ v/Ui0MDAjfg4zdLzeWdReHw1Q5emnhlImaowsD+KWmU1UojB4tKo5UTEN7t14ztQ 8/WEeaFVHYUTY43XvsXhIux8/bgplF4rTLf90ptyhbZ1XqOwqGn1rKDPHdVLJFS2 e2Mc2aNJBMfQLxowcqvcnZXGPRq9h+51QHVUs2ATGiJICSOt6IMpJgOoMEMFPees YnD1gD3SfPEn/R6+i/mQqDM7GDA/38KRO/2D8bn09WXbvbGCvSqw0Z99miFJK7RN ueAcxxQn8q0usBSYfoz5NxbJz14gaDaU5DZmB80yK6BskxrDaM0= =PVt6 -----END PGP SIGNATURE----- --/fwWK64QdYvkXqPN--