Re: commit within function

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: commit within function
Дата
Msg-id dcc563d10907161203g51e2443ct3f0abf7ad9a9f977@mail.gmail.com
обсуждение исходный текст
Ответ на commit within function  (Anj Adu <fotographs@gmail.com>)
Список pgsql-admin
On Thu, Jul 16, 2009 at 11:30 AM, Anj Adu<fotographs@gmail.com> wrote:
> I need an explicit commit...i.e i need func B's results to be
> available to other transactions when I enter func C
>
> So...what you are saying is..in Func c
>
> BEGIN
>    simulate error
> EXCEPTION
>    WHEN condition [ OR condition ... ] THEN
>        do nothing;
> END;
>
> Will this cause the transaction to be committed upto the savepoint in
> the beginning of function C ?

The transaction will be committed or not as a whole.  That's how
transactions work.  If you need part of the data so far processed
committed then you need to commit the transaction and start a new one.

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: user connection properties
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: PostgreSQL using 100% CPU