RES: RES: How to use PQconsumeInput and PQisBusy correctly ?

Поиск
Список
Период
Сортировка
От Rodrigo Moreno
Тема RES: RES: How to use PQconsumeInput and PQisBusy correctly ?
Дата
Msg-id 20050313193352.59C33794012@pasto.terra.com.br
обсуждение исходный текст
Ответ на Re: RES: How to use PQconsumeInput and PQisBusy correctly ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces
Thanks Tom,

One more question, today I'm using the syncronous functions, like PQexec,
so, my apps is frozen until the query to be finish.

I'm wondering

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 ?

Thanks 
Rodrigo Moreno





В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: RES: How to use PQconsumeInput and PQisBusy correctly ?
Следующее
От: Berényi Gábor
Дата:
Сообщение: simple question