Re: limiting execution time of queries

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: limiting execution time of queries
Дата
Msg-id 200409271546.i8RFkqq23163@candle.pha.pa.us
обсуждение исходный текст
Ответ на limiting execution time of queries  (Hagen Hoepfner <Hagen.Hoepfner@gmx.de>)
Список 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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-general по дате отправления:

Предыдущее
От: Hagen Hoepfner
Дата:
Сообщение: limiting execution time of queries
Следующее
От:
Дата:
Сообщение: Syntax Issue in Trigger Function??