Re: Enhancement proposal - detect chain of triggers from inside the trigger - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Enhancement proposal - detect chain of triggers from inside the trigger
Date
Msg-id 50F5E7EC.8000809@gmail.com
Whole thread Raw
In response to Enhancement proposal - detect chain of triggers from inside the trigger  (Edson Richter <edsonrichter@hotmail.com>)
Responses Re: Enhancement proposal - detect chain of triggers from inside the trigger  (Edson Richter <edsonrichter@hotmail.com>)
List pgsql-general
On 01/15/2013 03:30 PM, Edson Richter wrote:
> I was wondering, would be a nice addition the ability to read the chain
> of triggers (may be another trigger variable like TG_OP, called
> "TG_CHAIN" or something else that will be an array with the name of the
> triggers called before current trigger).

Well for a given table triggers run in alphabetical name order if that
helps.

>
> Would help debug database triggers that have cascaded events.
>
> Regards,
>
> Edson
>
>


--
Adrian Klaver
adrian.klaver@gmail.com


pgsql-general by date:

Previous
From: Edson Richter
Date:
Subject: Enhancement proposal - detect chain of triggers from inside the trigger
Next
From: Edson Richter
Date:
Subject: Re: Enhancement proposal - detect chain of triggers from inside the trigger