Re: Does psql use nested transactions?

Поиск
Список
Период
Сортировка
От Alvaro Herrera Munoz
Тема Re: Does psql use nested transactions?
Дата
Msg-id 20040817205856.GA30050@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: Does psql use nested transactions?  (Haroldo Stenger <haroldo.stenger@gmail.com>)
Ответы Re: Does psql use nested transactions?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Does psql use nested transactions?  (Haroldo Stenger <haroldo.stenger@gmail.com>)
Список pgsql-hackers
On Tue, Aug 17, 2004 at 03:33:01PM -0300, Haroldo Stenger wrote:

Haroldo,

> On Wed, 11 Aug 2004 11:47:35 -0400, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > The other objection is that this would create very substantial overhead.
> 
> why?

Establishing a savepoint is a non-trivial operation (cost-wise).  Several
internal server structures have to be prepared for it.  It's way cheaper than
normal transaction start and commit, but undesirable anyway if done once per
query.  Worse if it's going to be seldom used.

-- 
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"La experiencia nos dice que el hombre peló millones de veces las patatas,
pero era forzoso admitir la posibilidad de que en un caso entre millones,
las patatas pelarían al hombre" (Ijon Tichy)


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: [ADMIN] SRPM for 8.0.0 beta?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Does psql use nested transactions?