From: Doug McNaught <doug@wireboard.com>
To: holger@marzen.de
Cc: Martijn van Oosterhout <kleptog@svana.org>
Cc: Samuel J. Sutjiono <ssutjiono@wc-group.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Performance issues with compaq server
Date: 09 May 2002 00:24:52 -0400
Message-ID: <m3offqhrsb.fsf@varsoon.wireboard.com> (raw)
References: <Pine.LNX.4.44.0205082155550.7269-100000@bluebell.marzen.de>
Holger Marzen <holger@marzen.de> writes:
> On 8 May 2002, Doug McNaught wrote:
>
> > Hmm don't you have to ROLLBACK and redo the whole transaction without
> > the offending row(s), since you can't commit while in ABORT state? Or
> > am I misunderstanding?
>
> Postgres complains and doesn't accept the following inserts after a
> failed one until end of transaction. I didn't have the time yet to
> figure out if it rolls back the preceeding inserts.
I'm pretty sure that the transaction goes into ABORT state and all you
can do is rollback and start over, minus the offending row(s).
> Is there a rule in SQL standards that describes what should happen if
> some statemens in a transaction fail and the program issues a commit?
I think PG's is standard behavior; that's kind of the whole point of
having transactions.
-Doug
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: doug@wireboard.com, holger@marzen.de, kleptog@svana.org, ssutjiono@wc-group.com, pgsql-general@postgresql.org
Subject: Re: Performance issues with compaq server
In-Reply-To: <m3offqhrsb.fsf@varsoon.wireboard.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox