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 1sbLqV-00FxsO-Iq for pgsql-bugs@arkaria.postgresql.org; Tue, 06 Aug 2024 15:11:31 +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 1sbLqT-000gCl-W3 for pgsql-bugs@arkaria.postgresql.org; Tue, 06 Aug 2024 15:11:30 +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 1sbLqT-000gCc-ND for pgsql-bugs@lists.postgresql.org; Tue, 06 Aug 2024 15:11:29 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sbLqR-003TtR-9X for pgsql-bugs@lists.postgresql.org; Tue, 06 Aug 2024 15:11:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 476FBPCB1344573; Tue, 6 Aug 2024 11:11:25 -0400 From: Tom Lane To: p2wap3@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18570: Drop event trigger for DDL finishes successfully but trigger still executed on DDL In-reply-to: <18570-43bc1b85bebd2572@postgresql.org> References: <18570-43bc1b85bebd2572@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 06 Aug 2024 08:53:19 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1344571.1722957085.1@sss.pgh.pa.us> Date: Tue, 06 Aug 2024 11:11:25 -0400 Message-ID: <1344572.1722957085@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > I created a function and an event trigger but then decided to drop the event > trigger (w/o dropping the function yet). DROP EVENT TRIGGER works as expected for me. Can you provide a fully self-contained example of what you did that didn't work? The most obvious explanation is that you forgot to commit the DROP, or something along that line. > I double checked by querying the information_schema.triggers (the list is > empty) That proves exactly nothing, because event triggers are never shown in that view anyway. They are not a SQL-standard feature, but information_schema is all about SQL-standard things. psql's "\dy" command could be used to check for event triggers. regards, tom lane