One more question, today I'm using the syncronous functions, like PQexec,
so, my apps is frozen until the query to be finish.
1) Use pqexec in a separate thread, wait the thread or call
PQgetCancel/PQcancel when user request that, or
2) Use PQconsumeInput/PQisBusy, in a non-thread program and wait for query
to be finish or user request their cancel.
What is the better one ?
In response to
pgsql-interfaces by date
|Next:||From: Berényi Gábor||Date: 2005-03-13 22:39:18|
|Subject: simple question|
|Previous:||From: Tom Lane||Date: 2005-03-13 19:21:15|
|Subject: Re: RES: How to use PQconsumeInput and PQisBusy correctly ? |