From: Tom Lane <tgl@sss.pgh.pa.us>
To: Yu Cao <yucao@falcon.kla-tencor.com>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] TBLOCK status from libpq / libpq++
Date: Sat, 17 Apr 1999 11:48:04 -0400
Message-ID: <23608.924364084@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.SOL.3.96.990416195855.19836B-100000@wavelet.kla-tencor.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, yucao@falcon.kla-tencor.com
Subject: Re: [INTERFACES] TBLOCK status from libpq / libpq++
In-Reply-To: <23608.924364084@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox