Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrbxD-0001Ha-JM for pgsql-bugs@arkaria.postgresql.org; Thu, 19 May 2022 08:56:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nrbxC-0001ry-Ex for pgsql-bugs@arkaria.postgresql.org; Thu, 19 May 2022 08:56:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrbxC-0001ro-6m for pgsql-bugs@lists.postgresql.org; Thu, 19 May 2022 08:56:18 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrbxA-0007b0-1U for pgsql-bugs@lists.postgresql.org; Thu, 19 May 2022 08:56:17 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8F45E5C00F7; Thu, 19 May 2022 04:56:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 19 May 2022 04:56:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc: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=1652950573; x=1653036973; bh=sJJIYZynYA W1vyZem3DZdZaH2HzGEfpBEK9tCqrPKyo=; b=Hkwe1zNvHawqRdzY/uIK8heEW6 bairet/g3ut4M+grB567rx6SkWg5sqm/2BzR7Gr2/xnr5JrEgs3jq6Ix7MrLvXfn 3/8dtC0PQR58zltnDgl21gdz2/1Wvwt8sQO5WURUCSAheSvTYHK0xuTl8Ld2ZPOp oJgpFFxS2neG9lIDRkUIsmtBpzgGPc3N+5Ymb5OUFdX7x0hrIJImivLzH/QkgtRV Th60KRg+D6rOzD2zrpUkJtbj2NZ86P+6zcb8VEs2vTv0Lv/Kc4sAdVesrbWwpmEa 10ugDinDFsGRAU4Td3JGt48zA6IS6dHd3dgIUDuqALszKGgXNMftKbP9gGYw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=1652950573; x=1653036973; bh=sJJIYZynYAW1vyZem3DZdZaH2HzG EfpBEK9tCqrPKyo=; b=c/HBYRiE68q0VXKCiZ+A5akvdDSt7slnzdn7HU9L2hwT ZN+mMz3QEFYyC0WCVxLaCf0o0IlAgXzw3dXgwEYkrZwaqX6Hn7JX3ct10k7w2L28 aYmSniTRLxsI/mT8LtD6/QJ+cNrehMLpyRmJe/AJLE4n1QZu7XIIXr/hgaTQUOGA 5eEfWwfPo02QkG5MEIeJrv+c9c4pyZv3Ov61lZuXg42lCvcCq8/OwTMNcWRgeFET X4igkOi29XeX7/n3pEJljRsphYvmQI45zsLF/UDK9r2IuM7eHC8vB6g5I6CK/eu5 emVJd/hUWh5Y8F6WCWVJHAgGaM9d2wqcXIRCo5jVqA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedriedugddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 May 2022 04:56:11 -0400 (EDT) Date: Thu, 19 May 2022 17:56:09 +0900 From: Michael Paquier To: Masahiko Sawada Cc: Alvaro Herrera , LEMAIRE Leslie =?iso-8859-1?Q?=28Charg=E9e_de_mission?= =?iso-8859-1?Q?=29?= - SG/SNUM/UNI/DRC , pgsql-bugs@lists.postgresql.org Subject: Re: Implicitly created operator family not listed by pg_event_trigger_ddl_commands Message-ID: References: <202205041017.uc3dxylntais@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pv7WMxosdDnprsAC" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --pv7WMxosdDnprsAC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, May 06, 2022 at 02:26:42PM +0900, Masahiko Sawada wrote: > DefineOpClass() calls CreateOpFamily() to create the operator family > but in CreateOpFamily() we don't report the new object to event > triggers. The event by CREATE OPERATOR FAMILY is normally reported by > ProcessUtilitySlow(). I've confirmed this happens on all supported > branches. I've attached a patch to fix it. Hmm. It looks like it makes sense to back-patch that. That's indeed a bit surprising to not have an event trigger inform about both. +-- CRAETE OPERATOR CLASS without FAMILY clause should report +-- both CRAETE OPERATOR FAMILY and CRAETE OPERATOR CLASS Got the same typo here, repeated three times. - tmpAddr = CreateOpFamily(stmt->amname, opcname, + tmpAddr = CreateOpFamily(&opfstmt, stmt->amname, opcname, namespaceoid, amoid); CreateOpFamily() does not need its second argument now that you pass down a CreateOpFamilyStmt as first argument, no? -- Michael --pv7WMxosdDnprsAC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmKGBikACgkQnvQgOdby QH02ww//bKDP9M4PecHisZzI0vel3LuSqFxs5CWVDktGf1HT5CFAqqlb3uWEt6Qm zbJ1MFHSSLE4fpTtntEox/zyhnW0De7oiP7sDYsfQQZDrxPKvfjQLkzJknCwwM7D R4NgivxZUHIPgBzHgBUWfbc2fvnPqyfWIpFBjh+7v4guz6LXjxuIq+2fl7hFL3+M 2F+nO6TYXLO+JYE+sGCxvPkQrG1PLg8FrQLtSfG9u/L1v6DgCQwKlKPxv2JT3hyO yB6xdATNCSfO6/OnX9hoispD8MuaDySo2gIvMhBABYSSzn4s8hpJlZ+TxqTZkhvn JXImbmjzD1QvtLEJI+wQiGf5Ci2b5gdljav9yMvTpY8uWN81gqewFy+ywoQzpEAV eknIy8Ue8sz0Ms/UFA3j4wXeOtoN18P/Gef4+XDp+mHqyHz0+RZ99MpX8OV8qyA0 AMatCVVQy7yi5slvUW8XUbZzKR+Rvxl30eRXvXp8fhDUCNNRKz3YjMw0emc8AoBN OmeaF/ZIvKPrFe8h/t/qpTWIQuSZj1p/olzYq3U1MuHnKTDpy0inpoYjGteOOpIy DomO2hoVUF9Haumvv+PjSgdW5rxWpf45qzviTAloPyv7LWIJSo8X8m7KqgjZzkpj LqN5+xgo6ZE6NANjhmgUe82jRPabewVtZ7RuGP3u39CpanLsIIc= =AScW -----END PGP SIGNATURE----- --pv7WMxosdDnprsAC--