Re: How to cancel a query with libpq

From: Medi Montaseri <medi(dot)montaseri(at)intransa(dot)com>
To: Wenzhe Zhou <wzhou(at)cisco(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to cancel a query with libpq
Date: 2002-12-18 18:58:44
Message-ID: 3E00C564.5010006@intransa.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

PQrequestCancel()....but that would work with Async queries or if you
are using
7.3, you can timeout via postgresql.conf:statement_timeout and then send the
cancellation request to the backend.....

Wenzhe Zhou wrote:

>How to send request to server to cancel a query with libpq API?
>Thanks
>
>Wenzhe
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Luc Lachance 2002-12-18 19:09:42 Re: ORDER BY random() LIMIT 1 slowness
Previous Message Wenzhe Zhou 2002-12-18 17:57:00 How to cancel a query with libpq

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-12-18 19:33:54 Re: v7.3.1 tar ready ... please check it ...
Previous Message Camm Maguire 2002-12-18 18:56:16 create trigger on view