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 1mmeDU-0004nK-5D for pgsql-bugs@arkaria.postgresql.org; Mon, 15 Nov 2021 15:48:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mmeDS-0002hz-UT for pgsql-bugs@arkaria.postgresql.org; Mon, 15 Nov 2021 15:48:18 +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 1mmeDS-0002hk-1C for pgsql-bugs@lists.postgresql.org; Mon, 15 Nov 2021 15:48:18 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmeDP-0003Yj-Jn for pgsql-bugs@lists.postgresql.org; Mon, 15 Nov 2021 15:48:17 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4E0BB5C024E; Mon, 15 Nov 2021 10:48:14 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 15 Nov 2021 10:48:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=tQWceG2+T8qRn/+PFzv4TTYitmr7marrE4u+dxBjTHo=; b=FnGN3KUq U/ocTEGbsZnQKNUjSryOFQ8s/s/dichLdyx3YzMULt5RjeEKjNG/qPDxNfEGtJFQ d7Je5VPjzR4tB8Nrs+7ZtlafhMMgQ/F5zcbawHa8iDUJrgjYn/lVZjNHpo6PlOey 5XZHEA7kYyg+HB5QZ4g+CLs6CJwwdGUYF5Hx0F7EGQ3qXWWtFTG5o364Ot42589I BwsyOEMxrUlFDLdeAfbno6LRCdhAEnERW5JooZcQn1v87BvZKu3jtD7sgSURWSuw i3Jmjxgm7rQZvD9ECRJQ/DfeTwRTkH1fNdzBGvsNzJzYUjXiY5UOhc5+u0Z/ID7e URz4Mi3Adp0n0g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrfedtgdehfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggugfgjsehtkeertd dttdejnecuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvges rghlvhhhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedujeevjeffjeevud dutedvkeeiueeitddvieelfeekveejudefgeeuvdejhfeuleenucffohhmrghinhepvghn thgvrhhprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 Nov 2021 10:48:13 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C56972A05F0; Mon, 15 Nov 2021 12:48:10 -0300 (-03) Date: Mon, 15 Nov 2021 12:48:10 -0300 From: Alvaro Herrera To: Tom Lane Cc: pgsql-bugs@lists.postgresql.org Subject: Re: Bogus NULL object_name from pg_event_trigger_dropped_objects() Message-ID: <202111151548.zbalpm4zpnjy@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2123408.1636990185@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Nov-15, Tom Lane wrote: > I chanced to experiment with the event trigger function shown in > 9.29.2. Processing Objects Dropped by a DDL Command [1]. > I got > > et=# create table t1(f1 text primary key); > CREATE TABLE > et=# drop table t1; > NOTICE: DROP TABLE dropped object: table public.t1 public.t1 > NOTICE: DROP TABLE dropped object: type public.t1 public.t1 > NOTICE: DROP TABLE dropped object: type public._t1 public.t1[] > NOTICE: DROP TABLE dropped object: toast table pg_toast.pg_toast_38092 pg_toast.pg_toast_38092 > NOTICE: DROP TABLE dropped object: index pg_toast.pg_toast_38092_index pg_toast.pg_toast_38092_index > NOTICE: DROP TABLE dropped object: table constraint public. t1_pkey on public.t1 > NOTICE: DROP TABLE dropped object: index public.t1_pkey public.t1_pkey > DROP TABLE > et=# > > Note the faulty output for the pkey constraint. I've not looked > for the cause. Egad. Looking ... -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/