Re: Connecting website with SQL-database.....

From: "Manuel Lemos" <mlemos(at)acm(dot)org>
To: "Ed Loehr" <eloehr(at)austin(dot)rr(dot)com>
Cc: lylyeoh(at)mecomb(dot)com, tomg(at)admin(dot)nrnet(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Connecting website with SQL-database.....
Date: 2000-04-25 05:31:00
Message-ID: 1315.150T22T2112775mlemos@acm.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces pgsql-sql

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(at)acm(dot)org
--
E-mail: mlemos(at)acm(dot)org
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Richter 2000-04-25 06:19:25 PyGres DB Connection in Zope drops when many Users are added (UserDB)
Previous Message Stephan Richter 2000-04-25 04:52:58 Re: Can't find destroydb command in 7.0

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ed Loehr 2000-04-25 14:54:08 Re: Connecting website with SQL-database.....
Previous Message Ed Loehr 2000-04-24 19:10:21 Re: Connecting website with SQL-database.....

Browse pgsql-sql by date

  From Date Subject
Next Message Ed Loehr 2000-04-25 14:54:08 Re: Connecting website with SQL-database.....
Previous Message Ed Loehr 2000-04-24 19:10:21 Re: Connecting website with SQL-database.....