Re: Cancel a query. - Mailing list pgsql-general

From Vick Khera
Subject Re: Cancel a query.
Date
Msg-id AANLkTikLd1sqgu1tju68qwzuYfpSBiw5-oPxZ-Zqbnym@mail.gmail.com
Whole thread Raw
In response to Cancel a query.  (Rob Brown-Bayliss <r.brown.bayliss@gmail.com>)
List pgsql-general
On Sat, Nov 20, 2010 at 12:41 AM, Rob Brown-Bayliss
<r.brown.bayliss@gmail.com> wrote:
> I am trying to catch time outs etc, basically after a set amount of
> time I am assuming something has failed.

Just set a statement timeout before running your potentially long
queries.  Your client code will return an error which you can then
detect and react to properly.

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: "could not accept SSPI security context"
Next
From: Matthieu Huin
Date:
Subject: Re: Cancel a query.