Re: determining if there's a transaction in progress

From: Steve Howe <howe(at)carcass(dot)dhs(dot)org>
To: pgsql-interfaces-owner(at)postgresql(dot)org, Daniel Kelley <dkelley(at)otec(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: determining if there's a transaction in progress
Date: 2002-08-16 18:11:03
Message-ID: 17444773280.20020816151103@carcass.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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(at)carcass(dot)dhs(dot)org

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Warren W. Gay VE3WWG 2002-08-17 04:39:53 libpq bug handling signals
Previous Message Daniel Kelley 2002-08-16 13:54:26 determining if there's a transaction in progress