Received: from pascal.uol.com.br (pascal.uol.com.br [200.230.198.87]) by hub.org (8.9.3/8.9.3) with ESMTP id CAA83164 for ; Tue, 25 Apr 2000 02:36:52 -0400 (EDT) (envelope-from mlemos@acm.org) Received: from 200-191-122-165-as.acessonet.com.br (200-191-122-165-as.acessonet.com.br [200.191.122.165]) by pascal.uol.com.br (8.9.1/8.9.1) with SMTP id DAA28523; Tue, 25 Apr 2000 03:34:38 -0300 (BRT) Date: 25 Apr 2000 3:31:0 -0200 From: "Manuel Lemos" Subject: Re: Connecting website with SQL-database..... To: "Ed Loehr" In-Reply-To: <39049C1D.64AC33E6@austin.rr.com> Message-ID: <1315.150T22T2112775mlemos@acm.org> MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Cc: lylyeoh@mecomb.com, tomg@admin.nrnet.org, pgsql-general@postgresql.org X-Mailer: THOR 2.6a (Amiga;TCP/IP) X-Archive-Number: 200004/527 Hello Ed, On 24-Apr-00 17:10:21, you wrote: >Manuel Lemos wrote: >> >> >Plus if you get a warning/error, Postgresql _requires_ you to rollback, >> >whereas many other databases don't. >> >> That's what Metabase expects. When there is an error, you should rollback >> before exiting a transaction with AutoCommit(Off). >> >> I noticed the discussion but I could not quite figure what was the problem. >The problem on this, from my perspective, is that if you have a transaction >that consists of 20 queries, and the 14th query fails, then you'd like to >be able to abort only the *statement*, recovering in the client application >in whatever way seems appropriate. Automatically *forcing* a rollback >takes that recovery choice away. The problem is that PostgreSQL lacks of transactions check points with which you could do what you want. That doesn't mean that transactions work differently from other DBMS. There's just only one check point to rollback: the transaction begining. Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org -- E-mail: mlemos@acm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --