Re: PREPARE and transactions
| От | Alvaro Herrera |
|---|---|
| Тема | Re: PREPARE and transactions |
| Дата | |
| Msg-id | 20040626172823.GB3396@dcc.uchile.cl обсуждение исходный текст |
| Ответ на | Re: PREPARE and transactions ("Merlin Moncure" <merlin.moncure@rcsonline.com>) |
| Список | 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 по дате отправления: