Search Postgresql Archives

Re: Cancel a query.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 20, 2010 at 12:41 AM, Rob Brown-Bayliss
<r.brown.bayliss@xxxxxxxxx> 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.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux