Re: plgpsql and transactions

Поиск
Список
Период
Сортировка
От Terry Lee Tucker
Тема Re: plgpsql and transactions
Дата
Msg-id 200604061648.15501.terry@esc1.com
обсуждение исходный текст
Ответ на Re: plgpsql and transactions  (Bill Moseley <moseley@hank.org>)
Ответы Re: plgpsql and transactions  (Bill Moseley <moseley@hank.org>)
Список 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 по дате отправления:

Предыдущее
От: Scott Ribe
Дата:
Сообщение: Re: "Upcalls" (sort of) from the database
Следующее
От: Mark Harrison
Дата:
Сообщение: posgresql <-> oracle