| From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
|---|---|
| To: | Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org, "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl> |
| Subject: | Re: PREPARE and transactions |
| Date: | 2004-06-26 17:28:23 |
| Message-ID: | 20040626172823.GB3396@dcc.uchile.cl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Greg Stark | 2004-06-26 18:09:53 | Re: [PATCHES] nested xacts and phantom Xids |
| Previous Message | Thomas Hallgren | 2004-06-26 14:20:37 | Re: warning missing |