Re: PL/pgSQL equivalent to PQtransactionStatus?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Christophe <xof(at)thebuild(dot)com>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: PL/pgSQL equivalent to PQtransactionStatus?
Date: 2008-07-31 18:49:24
Message-ID: 20080731184924.GI8497@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christophe 2008-07-31 18:55:59 Re: PL/pgSQL equivalent to PQtransactionStatus?
Previous Message Christophe 2008-07-31 18:44:40 Re: PL/pgSQL equivalent to PQtransactionStatus?