Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 9A28F475951 for ; Thu, 9 May 2002 00:27:07 -0400 (EDT) Received: from varsoon.wireboard.com (www.wireboard.com [216.151.155.101]) by postgresql.org (Postfix) with ESMTP id 758C6475903 for ; Thu, 9 May 2002 00:27:06 -0400 (EDT) Received: from doug by varsoon.wireboard.com with local (Exim 3.33 #1) id 175fU4-0001bF-00; Thu, 09 May 2002 00:24:52 -0400 To: holger@marzen.de Cc: Martijn van Oosterhout , "Samuel J. Sutjiono" , Subject: Re: Performance issues with compaq server References: From: Doug McNaught Date: 09 May 2002 00:24:52 -0400 In-Reply-To: Holger Marzen's message of "Wed, 8 May 2002 22:01:05 +0200 (CEST)" Message-ID: Lines: 22 User-Agent: Gnus/5.0806 (Gnus v5.8.6) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200205/313 X-Sequence-Number: 24293 Holger Marzen 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