pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rodrigo Moreno <rodrigo.miguel@terra.com.br>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: pgsql-interfaces@postgresql.org
Subject: RES: RES: How to use PQconsumeInput and PQisBusy correctly ?
Date: Sun, 13 Mar 2005 16:33:39 -0300
Message-ID: <20050313193352.59C33794012@pasto.terra.com.br> (raw)
In-Reply-To: <18424.1110741675@sss.pgh.pa.us>

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






Message-ID: <20050313193352.59C33794012@pasto.terra.com.br>
Permalink:  ../20050313193352.59C33794012@pasto.terra.com.br/
Also on:    postgresql.org/message-id/20050313193352.59C33794012@pasto.terra.com.br

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: rodrigo.miguel@terra.com.br, tgl@sss.pgh.pa.us
  Subject: Re: RES: RES: How to use PQconsumeInput and PQisBusy correctly ?
  In-Reply-To: <20050313193352.59C33794012@pasto.terra.com.br>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox