Re: Trigger (Transaction related) - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Trigger (Transaction related)
Date
Msg-id 20060901075507.GH12644@svana.org
Whole thread Raw
In response to Re: Trigger (Transaction related)  ("Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>)
List pgsql-general
On Fri, Sep 01, 2006 at 03:33:55AM -0400, Harpreet Dhaliwal wrote:
> Thats OK, but my question is why did the original insert not take place.
> Syntax error was in the select query that is fired as a result of the
> trigger

The trigger is part of the transaction. If the trigger fails, so does
the whole transaction.

It would be kinda silly if a transaction was allowed to succeed even
though not all the triggers were run.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: "Jasbinder Bali"
Date:
Subject: Re: SPI_execute (result of a select statement)
Next
From: Martijn van Oosterhout
Date:
Subject: Re: SPI_execute (result of a select statement)