| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | John Wells <jb(at)sourceillustrated(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Embedded transactions |
| Date: | 2004-01-27 00:36:05 |
| Message-ID: | 200401270036.i0R0a5i06956@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
John Wells wrote:
> On this page: http://www.compiere.org/technology/independence.html, the
> project leader of Compiere (a popular ERP package) states that the move to
> Postgres failed because of lack of support of embedded
> transactions...something both Oracle and DB2 support.
>
> Can someone explain to me excactly what embedded transactions are and why
> they're challenging enough to not be included in Postgres or MySQL? I'm
> guessing it's some sort of begin/commit/rollback transactions within
> being/commit/rollback blocks, but I may be trivializing it.
They want:
BEGIN;
INSERT
BEGIN;
INSERT;
-- failure
ROLLBACK;
INSERT;
COMMIT;
so if the insert fails, they can continue with their transactions. They
are kind of hard to do, but we are working on it:
http://momjian.postgresql.org/main/writings/pgsql/project
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Manuel Tejada | 2004-01-27 02:03:30 | Re: I can't upgrade to PostgreSQL 7.4 in RedHat 9.0 |
| Previous Message | John Wells | 2004-01-27 00:12:22 | Embedded transactions |