Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fvIhp-0000sN-F4 for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Aug 2018 08:53:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fvIhn-0001Np-6d for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Aug 2018 08:53:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fvIhn-0001Ni-0Q for pgsql-bugs@lists.postgresql.org; Thu, 30 Aug 2018 08:53:31 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fvIhk-0001wd-Vx for pgsql-bugs@lists.postgresql.org; Thu, 30 Aug 2018 08:53:30 +0000 Received: from [192.168.127.1] (port=25003 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1fvIhi-000Bza-Q6; Thu, 30 Aug 2018 08:53:26 +0000 Received: from [127.0.0.1] (port=34393 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1fvIhi-00033l-4V; Thu, 30 Aug 2018 08:53:26 +0000 From: Andrew Gierth To: tarek_heiland@debortoli.com.au Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15359: event_trigger via pg_event_trigger_ddl_commands() not returning "CREATE SEQUENCE" command In-Reply-To: <153560226458.1484.15293934964985286328@wrigleys.postgresql.org> (PG Bug reporting form's message of "Thu, 30 Aug 2018 04:11:04 +0000") Message-ID: <87a7p4xmu8.fsf@news-spur.riddles.org.uk> References: <153560226458.1484.15293934964985286328@wrigleys.postgresql.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Thu, 30 Aug 2018 09:53:26 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "PG" == PG Bug reporting form writes: PG> 1) Event Trigger Function (redacted to raise notice only for PG> proscribed events) I don't see the CREATE EVENT TRIGGER command included in your test case? When I do your test with the addition of: CREATE EVENT TRIGGER foo ON ddl_command_end EXECUTE PROCEDURE admin.trg_create_set_owner(); then I see the NOTICE message for both table and sequence creation: postgres=# CREATE SEQUENCE test_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; NOTICE: event CREATE SEQUENCE for object public.test_seq CREATE SEQUENCE -- Andrew (irc:RhodiumToad)