Re: [HACKERS] pg_trigger_depth() v3 (was: TG_DEPTH)

2012-01-25 Thread Alvaro Herrera
Committed, with OID change. Thanks. I tested it with plphp just for the heck of it and it worked wonderfully. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-hackers mailing list (pgsql-h

Re: [HACKERS] pg_trigger_depth() v3 (was: TG_DEPTH)

2012-01-15 Thread Kevin Grittner
"Kevin Grittner" wrote: > Florian Pflug wrote: >> The trigger depth is incremented before calling the trigger >> function in ExecCallTriggerFunc() and decremented right >> afterwards, which seems fine - apart from the fact that the >> decrement is skipped in case of an error. The patch handles