Get current query in a trigger function - Mailing list pgsql-hackers

From Vlad Arkhipov
Subject Get current query in a trigger function
Date
Msg-id 50EFDFBC.8000006@dc.baikal.ru
Whole thread Raw
Responses Re: Get current query in a trigger function
List pgsql-hackers
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.



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Possible PANIC in PostPrepare_Locks
Next
From: Amit Kapila
Date:
Subject: Re: Performance Improvement by reducing WAL for Update Operation