"Rodrigo Moreno" <rodrigo(dot)miguel(at)terra(dot)com(dot)br> writes:
> But, my question, I always should call pqconsume before a pqisbusy ?
Up to you. You can always call either one safely, AFAIR. The isbusy
result tells you whether you can call pqgetresult without blocking.
isbusy itself doesn't change any state --- to make something happen
(ie, collect data from the socket) you need to call consumeinput.
regards, tom lane
In response to
pgsql-interfaces by date
|Next:||From: Rodrigo Moreno||Date: 2005-03-13 19:33:39|
|Subject: RES: RES: How to use PQconsumeInput and PQisBusy correctly ?|
|Previous:||From: Rodrigo Moreno||Date: 2005-03-13 19:10:02|
|Subject: RES: How to use PQconsumeInput and PQisBusy correctly ?|