Skip site navigation (1) Skip section navigation (2)

Re: limiting execution time of queries

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Hagen Hoepfner <Hagen(dot)Hoepfner(at)gmx(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: limiting execution time of queries
Date: 2004-09-27 15:46:52
Message-ID: 200409271546.i8RFkqq23163@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-general
Hagen Hoepfner wrote:
> Dear list,
> 
> i want to limit the execution time of an SQL-query. That means, that the 
> query should be stoped if it takes longer that e.g. 10 seconds. How can 
> I do so?

Sure, use SET statement_timeout or in postgresql.conf.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-general by date

Next:From: tsarevichDate: 2004-09-27 16:42:42
Subject: Syntax Issue in Trigger Function??
Previous:From: Hagen HoepfnerDate: 2004-09-27 15:33:47
Subject: limiting execution time of queries

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group