Re: concurrent transactions inside the same connection - Mailing list pgsql-hackers

From Albe Laurenz
Subject Re: concurrent transactions inside the same connection
Date
Msg-id 52EF20B2E3209443BC37736D00C3C13807FD4580@EXADV1.host.magwien.gv.at
Whole thread Raw
In response to concurrent transactions inside the same connection  ("Adrian Maier" <adrian.maier@gmail.com>)
List pgsql-hackers
> I have included below a fragment of a discussion from the freepascal
mailing
> list.  Apparently, some folks expect to be able to start multiple
transactions
[...]
> inside the *same* database connection.
>
> My feeling is that this is a false problem, caused by some
interbase/firebird
> or delphi habits .   But ... the poster claims that Oracle and
SqlServer
> have such a feature   ( Oracle has 'named' transactions - but these
> names seem to be just labels )  - is this true ?

I can only speak for Oracle:

Transaction names are just labels, that is correct.
There is, however, something called an 'autonomous transaction' in
PL/SQL
stored procedures and triggers. A stored procedure can start a new
transaction,
independent from the current context.
Once you return from the stored procedure, the old transaction is
resumed.

Yours,
Laurenz Albe


pgsql-hackers by date:

Previous
From: "Adrian Maier"
Date:
Subject: concurrent transactions inside the same connection
Next
From: Martijn van Oosterhout
Date:
Subject: Re: concurrent transactions inside the same connection