Re: Should PQconsumeInput/PQisBusy be expensive to use?

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "PGSQL Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Should PQconsumeInput/PQisBusy be expensive to use?
Date: 2010-10-28 16:07:26
Message-ID: f2dcf7c0-d630-46bb-a4f8-e3a4e27ee0d2@mm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Clark wrote:

> I guess I can have one thread performing the query using the non async PG
> calls, then from another thread issue the cancellation. Both threads
> accessing the same PGconn ?

Yes. See http://www.postgresql.org/docs/9.0/static/libpq-cancel.html

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message akp geek 2010-10-28 16:11:39 moving database objects from one schema to other
Previous Message Daniel Verite 2010-10-28 16:04:54 Re: Should PQconsumeInput/PQisBusy be expensive to use?