Re: background triggers?

From: Thomas Hallgren <thomas(at)tada(dot)se>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: background triggers?
Date: 2006-05-25 08:33:13
Message-ID: 44756BC9.9030103@tada.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Holger Hoffstaette 2006-05-25 08:42:06 Re: 8.1 on gentoo
Previous Message Dawid Kuroczko 2006-05-25 08:21:46 Re: background triggers?