Re: [GENERAL] Asynchronous Query processing

2007-08-06 Thread Brendon Sablinski
>>If you know for a fact that there are no more statements in processing, there's >>no need to call PQgetResult() any more. thanks, that is what I thought. >>What poll? PQconsumeInput()/PQisBusy() _is_ the poll. comsumeInput and isBusy is not a poll. A poll tells you if data is ready. When data

[GENERAL] Asynchronous Query processing

2007-08-06 Thread Brendon Sablinski
I have a need to do asynchronous query processing. I am a little confused by the order and frequency of calls. Can someone tell me if the below is correct? The code comments are littered with my questions. PQsendQueryParams(pgconn, "SELECT ..", ); while(1) { epoll/poll/select PQsocket(pg