> 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).
There is no difference between a transaction explicitly started with
BEGIN...COMMIT and one wrapping a single statement.
What were you planning to do differently if a BEGIN was issued?
In response to
pgsql-general by date
|Next:||From: Mike Gould||Date: 2008-07-31 19:28:14|
|Subject: Using PostGres general distribution |
|Previous:||From: Christophe||Date: 2008-07-31 19:03:33|
|Subject: Re: PL/pgSQL equivalent to PQtransactionStatus?|