Re: start of transaction (was: Re: [PERFORM] Help with

From: Hannu Krosing <hannu(at)tm(dot)ee>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Neil Conway <neilc(at)samurai(dot)com>, Will LaShell <will(at)lashell(dot)net>, Christopher Browne <cbbrowne(at)acm(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: start of transaction (was: Re: [PERFORM] Help with
Date: 2003-11-17 10:16:06
Message-ID: 1069064165.20092.20.camel@fuji.krosing.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

Tom Lane kirjutas E, 17.11.2003 kell 02:08:
> Neil Conway <neilc(at)samurai(dot)com> writes:
> > Hmmm... I agree this behavior isn't ideal, although I can see the case
> > for viewing this as a mistake by the application developer: they are
> > assuming that they know exactly when transactions begin, which is not
> > a feature provided by their language interface.
>
> Well, actually, it's a bug in the interface IMHO. But as I said in the
> last thread, it's a fairly widespread bug.

I'm not sure that it is a client-side bug. For example Oracle seems to
_always_ have a transaction going, i.e. you can't be "outside" of
transaction, and you use just COMMIT to commit old _and_start_new_
transaction.

IIRC the same is true for DB2.

For these database the BEGIN TRANSACTION command is mainly used for
starting nested transactions, which we don't have.

> We've been taking the
> position that the interface libraries should get fixed, and that's not
> happening. It's probably time to look at a server-side fix.

Maybe "fixing" the interface libraries would make them incompatible with
*DBC's for all other databases in some subtle ways ?

-----------------
Hannu

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2003-11-17 10:19:06 Re: start of transaction (was: Re: [PERFORM] Help with
Previous Message Tommi Maekitalo 2003-11-17 09:52:25 Re: Release now live ...

Browse pgsql-performance by date

  From Date Subject
Next Message Hannu Krosing 2003-11-17 10:19:06 Re: start of transaction (was: Re: [PERFORM] Help with
Previous Message Stephan Szabo 2003-11-17 07:09:05 Re: start of transaction (was: Re: [PERFORM] Help with