Re: Transaction vs. Savepoints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Transaction vs. Savepoints
Дата
Msg-id 24405.1171032229@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Transaction vs. Savepoints  (Andreas <maps.on@gmx.net>)
Ответы Re: Transaction vs. Savepoints  (Andreas <maps.on@gmx.net>)
Список pgsql-novice
Andreas <maps.on@gmx.net> writes:
> As far as I know, PG handles 1 transaction per connection an several
> savepoints boxed within.

One transaction *at a time*, not one for the whole life of the session.

A good general design rule is that no transaction should stay open for
very long: do what you need to do and commit.  So the scenarios you're
envisioning are not relevant to a well-designed application.

            regards, tom lane

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

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: Transaction vs. Savepoints
Следующее
От: Andreas
Дата:
Сообщение: Re: Transaction vs. Savepoints