Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DE5B047589A for ; Sat, 17 Aug 2002 00:46:09 -0400 (EDT) Received: from fep4.cogeco.net (smtp.cogeco.net [216.221.81.25]) by postgresql.org (Postfix) with ESMTP id 6DAC7475872 for ; Sat, 17 Aug 2002 00:46:09 -0400 (EDT) Received: from cogeco.ca (d150-168-167.home.cgocable.net [24.150.168.167]) by fep4.cogeco.net (Postfix) with ESMTP id CDDC36BCF for ; Sat, 17 Aug 2002 00:46:13 -0400 (EDT) Message-ID: <3D5DD515.4070302@cogeco.ca> Date: Sat, 17 Aug 2002 00:46:13 -0400 From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020618 Netscape/7.0b1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: PostgreSQL mailing list Subject: Re: determining if there's a transaction in progress References: <17444773280.20020816151103@carcass.dhs.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/56 X-Sequence-Number: 3018 Steve Howe wrote: >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. > > I too could benefit from a libpq feature that indicates if a transaction is pending. This helps in determining in a destructor (or Ada finalization) whether the default action to rollback/commit is necessary (rather than depend upon the server default action). Assuming it is always necessary is clumsy, and imposes unnecessary overhead in situations where a transaction may not be in progress. Wish 2: After performing an INSERT operation, with a column containing a serial value, it would be nice to obtain that serial value without having to resort to a subsequent SELECT on OID to get at it. INFORMIX (and ORACLE?) make this information available to the embedded C/C++ clients. The same in libpq would be more efficient. Thanks, Warren. -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg