Re: background triggers? - Mailing list pgsql-general

From Thomas Hallgren
Subject Re: background triggers?
Date
Msg-id 44756BC9.9030103@tada.se
Whole thread Raw
In response to Re: background triggers?  (Rafal Pietrak <rafal@zorro.isa-geek.com>)
Responses Re: background triggers?  (Rafal Pietrak <rafal@zorro.isa-geek.com>)
List pgsql-general
Rafal Pietrak wrote:
> I'd like to propose a 'syntax/semantics' of such trigger:
>
> Triggers normally execute inside of a transaction.
>
> A COMMIT within a trigger could mean: "do a fork: fork-1) return to the
> main and schedule COMMIT there, fork-2) continue in bacground".
>
And what if fork-1) returns to the main, attempts the COMMIT but instead and rolls back due
to a violated constraint? Where does that leave fork-2?

Regards,
Thomas Hallgren

pgsql-general by date:

Previous
From: "Dawid Kuroczko"
Date:
Subject: Re: background triggers?
Next
From: Rafal Pietrak
Date:
Subject: Re: background triggers?