Re: PREPARE and transactions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: PREPARE and transactions
Date
Msg-id 20040626172823.GB3396@dcc.uchile.cl
Whole thread Raw
In response to Re: PREPARE and transactions  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
List pgsql-hackers
On Sat, Jun 26, 2004 at 09:12:33AM -0400, Merlin Moncure wrote:

> > BEGIN;
> >     ... do something ... ;
> >     SUBBEGIN;
> >         EXECUTE ...;
> >         -- if it fails:
> >         -- SUBABORT;
> >         -- PREPARE ...;
> >         -- SUBBEGIN;
> >         -- EXECUTE ...;
> >         -- can continue as if nothing happened
> >     SUBCOMMIT;
> > COMMIT;
> 
> This is not an option: this requires that every EXECUTE be wrapped with
> a subtransaction.  This is a performance killer because it (at minimum)
> triples my statement turnaround latency.

Ah, good point.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Linux transformó mi computadora, de una `máquina para hacer cosas',
en un aparato realmente entretenido, sobre el cual cada día aprendo
algo nuevo" (Jaime Salinas)



pgsql-hackers by date:

Previous
From: "Thomas Hallgren"
Date:
Subject: Re: warning missing
Next
From: Greg Stark
Date:
Subject: Re: [PATCHES] nested xacts and phantom Xids