Re: Should PQconsumeInput/PQisBusy be expensive to use? - Mailing list pgsql-general

From Daniel Verite
Subject Re: Should PQconsumeInput/PQisBusy be expensive to use?
Date
Msg-id f2dcf7c0-d630-46bb-a4f8-e3a4e27ee0d2@mm
Whole thread Raw
In response to Re: Should PQconsumeInput/PQisBusy be expensive to use?  (Michael Clark <codingninja@gmail.com>)
List 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

pgsql-general by date:

Previous
From: "Daniel Verite"
Date:
Subject: Re: Should PQconsumeInput/PQisBusy be expensive to use?
Next
From: akp geek
Date:
Subject: moving database objects from one schema to other