Re: Does psql use nested transactions? - Mailing list pgsql-hackers

From Alvaro Herrera Munoz
Subject Re: Does psql use nested transactions?
Date
Msg-id 20040817205856.GA30050@dcc.uchile.cl
Whole thread Raw
In response to Re: Does psql use nested transactions?  (Haroldo Stenger <haroldo.stenger@gmail.com>)
Responses Re: Does psql use nested transactions?
Re: Does psql use nested transactions?
List 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 by date:

Previous
From: Joe Conway
Date:
Subject: Re: [ADMIN] SRPM for 8.0.0 beta?
Next
From: Tom Lane
Date:
Subject: Re: Does psql use nested transactions?