X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EBF0ED1B241 for ; Thu, 29 Jul 2004 18:14:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69014-08 for ; Thu, 29 Jul 2004 21:14:36 +0000 (GMT) Received: from fedk0913.Ferring.com (unknown [213.237.141.22]) by svr1.postgresql.org (Postfix) with ESMTP id 15083D1B23F for ; Thu, 29 Jul 2004 18:14:29 -0300 (ADT) Received: from fedk0005.Fic.ferring.com (unverified [206.182.35.205]) by fedk0913.Ferring.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Thu, 29 Jul 2004 23:14:50 +0200 Received: from ferring.com (10.20.100.63 [10.20.100.63]) by fedk0005.Fic.ferring.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 3788WKQJ; Thu, 29 Jul 2004 23:14:25 +0200 Message-ID: <410968BA.7060508@ferring.com> Date: Thu, 29 Jul 2004 14:14:34 -0700 From: Kemin Zhou User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: C++ interface problem with libpq.so.3 References: <40FC18CC.8030108@ferring.com> <25150.1090267468@sss.pgh.pa.us> In-Reply-To: <25150.1090267468@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/243 X-Sequence-Number: 18495 Tom Lane wrote: >Kemin Zhou writes: > > >>I have writte a simple program to access PGDB from a C++ program using >>the libpq++-4.0 >>Most of time it runs perfect. This morning, it was working fine. Then >>later it stopped working. >>The symptom is that my program went to asleep. >> >> > >Looks to me like it's just waiting for a response from the backend. I'd >suggest looking into what the backend is doing. I doubt you have an >"interface" problem at all... > > regards, tom lane > > > I figured out my problem. I gave a BEGIN; command and forgot to type COMMIT or ROLLBACK. The access to this table is blocked. So my front end went to sleep (waiting for ever). Hope this may be useful to other people. Kemin ********************************************************************** Proprietary or confidential information belonging to Ferring Holding SA or to one of its affiliated companies may be contained in the message. If you are not the addressee indicated in this message (or responsible for the delivery of the message to such person), please do not copy or deliver this message to anyone. In such case, please destroy this message and notify the sender by reply e-mail. Please advise the sender immediately if you or your employer do not consent to e-mail for messages of this kind. Opinions, conclusions and other information in this message represent the opinion of the sender and do not necessarily represent or reflect the views and opinions of Ferring. **********************************************************************