Re: C++ interface problem with libpq.so.3 - Mailing list pgsql-sql

From Kemin Zhou
Subject Re: C++ interface problem with libpq.so.3
Date
Msg-id 410968BA.7060508@ferring.com
Whole thread Raw
In response to Re: C++ interface problem with libpq.so.3  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Tom Lane wrote:

>Kemin Zhou <kemin.zhou@ferring.com> 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
containedin the message. If you are not the addressee indicated in this message (or responsible for the delivery of the
messageto such person), please do not copy or deliver this message to anyone. In such case, please destroy this message
andnotify the sender by reply e-mail. Please advise the sender immediately if you or your employer do not consent to
e-mailfor messages of this kind. Opinions, conclusions and other information in this message represent the opinion of
thesender and do not necessarily represent or reflect the views and opinions of Ferring.
 
**********************************************************************



pgsql-sql by date:

Previous
From: Kemin Zhou
Date:
Subject: Re: Table and/or Database Creation Time
Next
From: Ray Aspeitia
Date:
Subject: How to create an aggregate?