Re: [INTERFACES] TBLOCK status from libpq / libpq++ - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: [INTERFACES] TBLOCK status from libpq / libpq++
Date
Msg-id 23608.924364084@sss.pgh.pa.us
Whole thread Raw
In response to TBLOCK status from libpq / libpq++  (Yu Cao <yucao@falcon.kla-tencor.com>)
List pgsql-interfaces
Yu Cao <yucao@falcon.kla-tencor.com> writes:
> Is there a way I can find out whether I'm inside a transaction
> block (between "BEGIN" and "END") by calling some libpq function?

No, libpq has no idea what the backend's status is.  If you need to
know this, I suggest keeping track of it in your own application code.

            regards, tom lane

pgsql-interfaces by date:

Previous
From: Yu Cao
Date:
Subject: TBLOCK status from libpq / libpq++
Next
From: Michael Meskes
Date:
Subject: Re: [INTERFACES] Selecting more columns in ECPG in one select - error?