From: Andrew Gierth <andrew@tao11.riddles.org.uk>
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
Date: Thu, 30 Aug 2018 09:53:26 +0100
Message-ID: <87a7p4xmu8.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <153560226458.1484.15293934964985286328@wrigleys.postgresql.org>
References: <153560226458.1484.15293934964985286328@wrigleys.postgresql.org>
>>>>> "PG" == PG Bug reporting form <noreply@postgresql.org> 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)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andrew@tao11.riddles.org.uk, tarek_heiland@debortoli.com.au
Subject: Re: BUG #15359: event_trigger via pg_event_trigger_ddl_commands() not returning "CREATE SEQUENCE" command
In-Reply-To: <87a7p4xmu8.fsf@news-spur.riddles.org.uk>
References: <153560226458.1484.15293934964985286328@wrigleys.postgresql.org> <87a7p4xmu8.fsf@news-spur.riddles.org.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox