Re: [INTERFACES] TBLOCK status from libpq / libpq++

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Yu Cao <yucao(at)falcon(dot)kla-tencor(dot)com>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] TBLOCK status from libpq / libpq++
Date: 1999-04-17 15:48:04
Message-ID: 23608.924364084@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Yu Cao <yucao(at)falcon(dot)kla-tencor(dot)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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Kambiz Darabi 1999-04-18 14:55:11 Q: pgaccess on macintosh ?
Previous Message Michael Meskes 1999-04-17 10:32:08 Re: [INTERFACES] Selecting more columns in ECPG in one select - error?