Re: plgpsql and transactions - Mailing list pgsql-general

From Terry Lee Tucker
Subject Re: plgpsql and transactions
Date
Msg-id 200604061648.15501.terry@esc1.com
Whole thread Raw
In response to Re: plgpsql and transactions  (Bill Moseley <moseley@hank.org>)
Responses Re: plgpsql and transactions  (Bill Moseley <moseley@hank.org>)
List pgsql-general
On Thursday 06 April 2006 03:27 pm, Bill Moseley saith:
> On Thu, Apr 06, 2006 at 01:44:57PM -0500, Terry Lee Tucker wrote:
> > Triggers fire inside a transaction.
>
> Ah, thanks.  Makes sense since each statement is in an implicit
> transaction.
>
> Granted, would help to see the trigger, but
> these are basically the same?
>
>     -- fires a trigger that updates more than one table
>     insert into semething (default);
>
> and:
>
>     begin;
>     -- fires a trigger that updates more than one table
>     insert into somthing (default);
>     commit;
>

In the latter, you have expanded the scope of the transaction; which,
sometimes you might want to do.

pgsql-general by date:

Previous
From: Scott Ribe
Date:
Subject: Re: "Upcalls" (sort of) from the database
Next
From: Mark Harrison
Date:
Subject: posgresql <-> oracle