Re: Get current query in a trigger function

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Get current query in a trigger function
Дата
Msg-id CA+TgmoZsvazMdN64O5yAnUM-3OAYp3RuBEKMjtB_1w_2LuwZSw@mail.gmail.com
обсуждение исходный текст
Ответ на Get current query in a trigger function  (Vlad Arkhipov <arhipov@dc.baikal.ru>)
Ответы Re: Get current query in a trigger function  (Vlad Arkhipov <arhipov@dc.baikal.ru>)
Список pgsql-hackers
On Fri, Jan 11, 2013 at 4:47 AM, Vlad Arkhipov <arhipov@dc.baikal.ru> wrote:
> Is there any simple way of getting a query for which a trigger was executed?
> debug_query_string and ActivePortal->sourceText return the top query when
> there are nested triggers.

I believe - only if the trigger is written in C.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [PERFORM] Slow query: bitmap scan troubles
Следующее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: pg_ctl idempotent option