Thread: Check if trigger was fired deferred

Check if trigger was fired deferred

From
Miroslav Šimulčík
Date:
Hi all,

how can I check inside C trigger function if it was fired deferred?

Thank you.

Regards,
Miro

Re: Check if trigger was fired deferred

From
Szymon Guz
Date:

On 27 February 2013 10:20, Miroslav Šimulčík <simulcik.miro@gmail.com> wrote:
Hi all,

how can I check inside C trigger function if it was fired deferred?

Thank you.

Regards,
Miro


I'd try tgdeferrable from Trigger struct: http://www.postgresql.org/docs/9.2/static/trigger-interface.html

regards
Szymon

Re: Check if trigger was fired deferred

From
Miroslav Šimulčík
Date:
I think tgdeferrable only tells if trigger can be deferred, not if it was actually fired deferred.

Miro


2013/2/27 Szymon Guz <mabewlun@gmail.com>

On 27 February 2013 10:20, Miroslav Šimulčík <simulcik.miro@gmail.com> wrote:
Hi all,

how can I check inside C trigger function if it was fired deferred?

Thank you.

Regards,
Miro


I'd try tgdeferrable from Trigger struct: http://www.postgresql.org/docs/9.2/static/trigger-interface.html

regards
Szymon