Use a função
current_query()
na função de gatilho. insert into control_table(query_text)
select current_query();
O gatilho deve ser
for each statement . current_query()
na função de gatilho. insert into control_table(query_text)
select current_query();
for each statement .