Re: PL/pgSQL equivalent to PQtransactionStatus? - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: PL/pgSQL equivalent to PQtransactionStatus?
Date
Msg-id 20080731184924.GI8497@alvh.no-ip.org
Whole thread Raw
In response to Re: PL/pgSQL equivalent to PQtransactionStatus?  (Christophe <xof@thebuild.com>)
Responses Re: PL/pgSQL equivalent to PQtransactionStatus?
Re: PL/pgSQL equivalent to PQtransactionStatus?
List pgsql-general
Christophe wrote:
>
> On Jul 31, 2008, at 11:12 AM, Richard Huxton wrote:
>> A pl/pgsql function *always* executes within a transaction.
>
> Indeed so.  What I'm looking for is a way of detecting if a transaction
> block has been opened (i.e., we're within a BEGIN).

Why does it matter?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: Christophe
Date:
Subject: Re: PL/pgSQL equivalent to PQtransactionStatus?
Next
From: Christophe
Date:
Subject: Re: PL/pgSQL equivalent to PQtransactionStatus?