public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: Igor Korot <[email protected]>
Cc: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: How to get a notification
Date: Fri, 7 Feb 2025 13:16:08 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+FnnTxU4wnjTstJ_234wqM66x5tQ2MPjvcpAPEN9nCJNqK63w@mail.gmail.com>
References: <CA+FnnTw1fUZz8=4gqKFgfXw2RePNxpy1JjcPtD2w3vh6mdXhQw@mail.gmail.com>
<[email protected]>
<CA+FnnTwe-JrnToK1tZD9J+ZMMM571cSvX3tyf0i3feL7QWSDOA@mail.gmail.com>
<[email protected]>
<CA+FnnTxU4wnjTstJ_234wqM66x5tQ2MPjvcpAPEN9nCJNqK63w@mail.gmail.com>
On 2/7/25 11:43, Igor Korot wrote:
> Hi, Adrian,
>
>
>
> It is not about the interface it is about, from link above:
>
> "pg_event_trigger_ddl_commands returns a list of DDL commands executed
> by each user action, when invoked in a function attached to a
> ddl_command_end event trigger."
>
>
> Is there a sample code i can look at?
Search:
https://duckduckgo.com/?q=pg_event_trigger_ddl_commands+example&t=ffab&ia=web
and ye shall find:
https://stackoverflow.com/questions/23488228/how-to-get-sql-text-from-postgres-event-trigger
> Also what is PostgreSQL version this function is introduced?
At top of Postgres doc pages are version specific links.
Go to:
https://www.postgresql.org/docs/current/functions-event-
triggers.html#PG-EVENT-TRIGGER-DDL-COMMAND-END-FUNCTIONS
and click back on versions until you don't find it.
>
> Thank you.
--
Adrian Klaver
[email protected]
view thread (6+ messages)
reply
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: How to get a notification
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox