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 1lsgOZ-0001fw-2K for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jun 2021 06:48:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lsgOY-0006Kp-36 for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jun 2021 06:48:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsgOW-0006Kg-Qk for pgsql-hackers@lists.postgresql.org; Mon, 14 Jun 2021 06:48:25 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsgOU-00065L-4M for pgsql-hackers@lists.postgresql.org; Mon, 14 Jun 2021 06:48:23 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8AB215C0074; Mon, 14 Jun 2021 02:48:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 14 Jun 2021 02:48:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=CBIkRRsWSnFanVh5IiTdYF0vcat SJVSlTAsqbTORBN4=; b=GuR7q6w9KioJJ0OdRyKp+3Vnry1F7qhBvp3+vhSJscc 1jKB2uq588+FUO3CWBRPM4lijBmGF5KXHDWiW0leB3Oml85z7vXRU/oKpu04tvF7 IaFgOThusoicgXLlqk/gG8AddqjAC/mD4CgnL8ZaEKUg8ddxBmFU/T1E3CnqqIFI 6qzxEuGadtS5COAWOWlfs5PxxVg+vLCvv0nZYPI4CIqqHtahf5pRX2Gg7zbIrTXG TrH3xjqizHRQqcpUNv1DPRXriaAdFidwGcuS9Bv1LZXV+VPOWbaaBtxfH3HpEiqk IMnfp/L06wprWUjhXiDC5P9QJWT0mAbgVeAv79uChpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=CBIkRR sWSnFanVh5IiTdYF0vcatSJVSlTAsqbTORBN4=; b=bNU1ZKzPvtQeBEp7lIq3QD i5tudZEaOI/gWNbFUVrGRcrxOZKiCBpaAxu8VPtWtuclIkKSey0bM9vbDs+pBZJc KtxriPNL4I6+I+gkw1p8bNkN8C15d7W9Xjq5UneefiEJBafirY8PHOMpvkHHxjYL CU8ACUPqcsPes7nL4Xig5RWpCRaVIEcxtFVzc5lgXhx1dqdpjx1pEMj7A5pIEYsj S14+9lZt+DjOaLrfRT3Hp+/AtglisUPHsVi8bHBKDewl5+ONaH0cU+uF7no23zcV yuiHi8T8535k3onR8VcJPXYWx73+nwHed3KvH/SyBZPyLnb/mzlmYkkWhtgQPz+Q == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvgedguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Jun 2021 02:48:18 -0400 (EDT) Date: Mon, 14 Jun 2021 15:48:13 +0900 From: Michael Paquier To: Aleksander Alekseev Cc: Alvaro Herrera , PostgreSQL Hackers , Sven Klemm Subject: Re: Fix dropped object handling in pg_event_trigger_ddl_commands Message-ID: References: <202106091355.sphciftmvqds@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JrggvvQXFPqVwOoh" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --JrggvvQXFPqVwOoh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jun 11, 2021 at 09:36:57PM +0900, Michael Paquier wrote: > Hm, nope. I think that we had better pass true as argument here. The main patch has been applied as of 2d689ba. > First, this is more consistent with the identity lookup (OK, it does > not matter as we would have discarded the object after the identity > lookup anyway, but any future shuffling of this code may not be that > wise). Second, now that I look at it, getObjectTypeDescription() can > never be NULL as we have fallback names for relations, routines and > constraints for all object types so the buffer will be filled with > some data. Let's replace the bottom of getObjectTypeDescription() > that returns now NULL by Assert(buffer.len > 0). This code is new as > of v14, so it is better to adjust that sooner than later. And this has been simplified with b56b83a. -- Michael --JrggvvQXFPqVwOoh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmDG+60ACgkQnvQgOdby QH159hAApq6tQQXCyJ41Dc9mXDlHP9pJoKeEr9T2Pr+y5sT1QBJD1JdauXVQ8HzB Y55HzfYydrFjigUwxqzdd6NMYY6SKvdgVq3gIfeBt+TU0TTz+4MG1FZCZ/Vz1hnQ 7GWb/hP86EtRBpzCm6oXpJHZnYmUSk7la3X7/w9dCZGB5643dDlZsYsG1jnBTIQt P2IFpXXzpTPS35ozcGK6yk4ETeLqqpR4cGrUJyopcjJ1+Js7nMKZV9bzJQLCN11k HbfhaxU0thu60QviK1sG9ZiO6PCUnzZUXDDTTQq5RDt7WQ6kmhznJV6ZNBol90Wr REI+keEm6y7l68Pm32c2ht6LnPxUauIMJRfZ5naO/qT4eNMdYI+uQkN6PhtT2cdC oWcv2GQmTNExskArp5b2WXMIy3WRkPPvrlk9NPhCqVR7TOTsgK4mQIvYPAvB4wc9 fqMuKR/AWYvagyn2FcmxBoD+nY1LJaduneN8dCptTRr4xlrj2ybwLnf2gvYgZujW 945QtKUaciGJdQ4bDWMibFe5QTXtp9Bpxm8p5XbrCdBK7j69POb3XoZrio3qS9Oy TRdbrPohO3VMR2sJeDEwT1pj13HBlec09z3CUthJh5pSBXnIId0kOqOT36FO2erh nKYu77wzL+YLHrgZKqROG7oaczi3XyLunekGcs4HteKV20bEXFE= =eW9W -----END PGP SIGNATURE----- --JrggvvQXFPqVwOoh--