Skip site navigation (1) Skip section navigation (2)

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

From: "Rodrigo Moreno" <rodrigo(dot)miguel(at)terra(dot)com(dot)br>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-interfaces(at)postgresql(dot)org>
Subject: RES: RES: How to use PQconsumeInput and PQisBusy correctly ?
Date: 2005-03-13 19:33:39
Message-ID: 20050313193352.59C33794012@pasto.terra.com.br (view raw or flat)
Thread:
Lists: 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




In response to

pgsql-interfaces by date

Next:From: Berényi GáborDate: 2005-03-13 22:39:18
Subject: simple question
Previous:From: Tom LaneDate: 2005-03-13 19:21:15
Subject: Re: RES: How to use PQconsumeInput and PQisBusy correctly ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group