Re: plgpsql and transactions

From: Terry Lee Tucker <terry(at)esc1(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: plgpsql and transactions
Date: 2006-04-06 20:48:15
Message-ID: 200604061648.15501.terry@esc1.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim Nasby 2006-04-06 20:48:37 Re: sort a referenced list
Previous Message Jim Nasby 2006-04-06 20:45:13 Re: MediaWiki and Postgresql?