Re: [HACKERS] Get current query in a trigger function

2013-01-15 Thread Robert Haas
On Mon, Jan 14, 2013 at 9:38 PM, Vlad Arkhipov 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 i

Re: [HACKERS] Get current query in a trigger function

2013-01-14 Thread Vlad Arkhipov
On 01/15/2013 01:45 AM, Robert Haas wrote: On Fri, Jan 11, 2013 at 4:47 AM, Vlad Arkhipov 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

Re: [HACKERS] Get current query in a trigger function

2013-01-14 Thread Robert Haas
On Fri, Jan 11, 2013 at 4:47 AM, Vlad Arkhipov 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. -- Rober

[HACKERS] Get current query in a trigger function

2013-01-11 Thread Vlad Arkhipov
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. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://w