pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedTBLOCK status from libpq / libpq++
2+ messages / 2 participants
[nested] [flat]
* TBLOCK status from libpq / libpq++
@ 1999-04-17 03:03 Yu Cao <yucao@falcon.kla-tencor.com>
1999-04-17 15:48 ` Re: [INTERFACES] TBLOCK status from libpq / libpq++ Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Yu Cao @ 1999-04-17 03:03 UTC (permalink / raw)
To: pgsql-interfaces
Is there a way I can find out whether I'm inside a transaction
block (between "BEGIN" and "END") by calling some libpq function?
The transaction state referred to in backend/access/transam/xact.c
seems buried too deep to be accessible from libpq.
Thanks for any help.
--Yu Cao
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [INTERFACES] TBLOCK status from libpq / libpq++
1999-04-17 03:03 TBLOCK status from libpq / libpq++ Yu Cao <yucao@falcon.kla-tencor.com>
@ 1999-04-17 15:48 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 1999-04-17 15:48 UTC (permalink / raw)
To: Yu Cao <yucao@falcon.kla-tencor.com>; +Cc: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-04-17 15:48 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-04-17 03:03 TBLOCK status from libpq / libpq++ Yu Cao <yucao@falcon.kla-tencor.com>
1999-04-17 15:48 ` Tom Lane <tgl@sss.pgh.pa.us>
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