Search Postgresql Archives

Re: PQisBusy returns true but no more data is received.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pelle Johansson <morth@xxxxxxxxx> writes:
> Basically, I have an epoll loop that executes the following code when  
> I receive data from postgresql (greatly simplified).
> ...
> The problem is that after two iterations in the loop PQisBusy()  
> returns true, making me exit to the event loop, but no more data is  
> received, so the function will not be called again.

Shouldn't happen.  Can you provide a complete test case?  (Are you sure
the problem isn't just the SELECT taking a long time?)

> Is it safe to move the call to PQisBusy() outside the loop,

Not if the idea is to not block in PQgetResult.

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux