Re: [HACKERS] Is it possible to get query_string value in an event trigger?

2017-05-24 Thread Robert Haas
:On Mon, May 22, 2017 at 2:18 PM, Jeremy Finzel wrote: > Hello. Is it possible to get the currently executing query in an event > trigger, for example, a create table event trigger function firing after > ddl_command_end, aside from checking pg_stat_activity for the current >

[HACKERS] Is it possible to get query_string value in an event trigger?

2017-05-22 Thread Jeremy Finzel
Hello. Is it possible to get the currently executing query in an event trigger, for example, a create table event trigger function firing after ddl_command_end, aside from checking pg_stat_activity for the current process? When I am debugging the source code, after executing a statement I can