Re: can you do rollback in a trigger function? - Mailing list pgsql-general

From Vick Khera
Subject Re: can you do rollback in a trigger function?
Date
Msg-id CALd+dcdtMQgJx6t8paVYBswHE2mDd8hQLJYO02A0V36Mwgr2jA@mail.gmail.com
Whole thread Raw
In response to can you do rollback in a trigger function?  (Quang Thoi <Quang_Thoi@symantec.com>)
List pgsql-general

On Tue, Oct 15, 2013 at 2:38 PM, Quang Thoi <Quang_Thoi@symantec.com> wrote:

I want to roll back deletion if there is a reference (FK) in another table.

Can I explicitly call a rollback inside a function?


You should RAISE an error. The transaction should roll back due to the error.

pgsql-general by date:

Previous
From: Quang Thoi
Date:
Subject: can you do rollback in a trigger function?
Next
From: Shaun Thomas
Date:
Subject: Re: can you do rollback in a trigger function?