From: Steve Howe <howe@carcass.dhs.org>
To: pgsql-interfaces-owner@postgresql.org, Daniel Kelley <dkelley@otec.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: determining if there's a transaction in progress
Date: Fri, 16 Aug 2002 15:11:03 -0300
Message-ID: <17444773280.20020816151103@carcass.dhs.org> (raw)
In-Reply-To: <Pine.BSF.4.20L2.0208160951340.48137-100000@mx1.gc.ny.otec.com>
References: <Pine.BSF.4.20L2.0208160951340.48137-100000@mx1.gc.ny.otec.com>
Hello Daniel,
Friday, August 16, 2002, 10:54:26 AM, you wrote:
DK> hi-
DK> i'm using libpq. is there any way to determine if there is a transaction
DK> is process thru libpq?
There is not.
DK> specifically, i'm looking for a function that would tell me whether or not
DK> there are changes that should be committed to the db before program exit.
If you want to ensure it, I suggest you to *always* start a
transaction and then commit it at the end.
-------------
Best regards,
Steve Howe mailto:howe@carcass.dhs.org
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: howe@carcass.dhs.org, dkelley@otec.com
Subject: Re: determining if there's a transaction in progress
In-Reply-To: <17444773280.20020816151103@carcass.dhs.org>
* 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