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

From: Ed Loehr <eloehr(at)austin(dot)rr(dot)com>
To: Manuel Lemos <mlemos(at)acm(dot)org>
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 14:54:08
Message-ID: 3905B190.F575D31C@austin.rr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces pgsql-sql

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.

I think the difference with other RDBMS that I and several others were
highlighting was the *behavior* resulting from a failed statement within a
transaction (i.e., aborted transaction vs. aborted statement), but I think
your orthogonal point is still valid.

Regards,
Ed Loehr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ross J. Reedstrom 2000-04-25 16:25:17 Re: Revisited: Transactions, insert unique.
Previous Message Andy Lewis 2000-04-25 14:21:54 Re: Is 7.0 ready? -> DBD as well???

Browse pgsql-interfaces by date

  From Date Subject
Next Message Constantin Teodorescu 2000-05-01 07:46:35 Re: [pgaccess] hard limit of results reached
Previous Message Manuel Lemos 2000-04-25 05:31:00 Re: Connecting website with SQL-database.....

Browse pgsql-sql by date

  From Date Subject
Next Message ditilupi 2000-04-27 17:57:01 [SQL] US Date Style
Previous Message Manuel Lemos 2000-04-25 05:31:00 Re: Connecting website with SQL-database.....