Search Postgresql Archives

Help with asynchronous queries

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

 



Hi, I need to execute some queries that do not return any value
for example "DELETE * FROM foo". This queries take a lot of time and I can't put them together in a single query. If I use the non-blocking function PQsendQuery() I have to wait until the execution of the first query terminates before executing another query right? In my case (without a result for the query) is it right to check only if PQisBusy returns 0 inside a loop before executing the next query? Or do I have to check the connection socket with a select and then do a PGconsumeInput when data is avaible and at the end check PQisBusy?

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

              http://www.postgresql.org/docs/faq

[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