Re: Killing "stuck" queries and preventing queries from getting "stuck"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Killing "stuck" queries and preventing queries from getting "stuck"
Дата
Msg-id 13583.1285641573@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Killing "stuck" queries and preventing queries from getting "stuck"  (Tim Uckun <timuckun@gmail.com>)
Ответы Re: Killing "stuck" queries and preventing queries from getting "stuck"  (Tim Uckun <timuckun@gmail.com>)
Список pgsql-general
Tim Uckun <timuckun@gmail.com> writes:
> Is there a way to tell postgres to stop any query that runs longer
> than a specified amount of time? Say an hour?

Setting statement_timeout would do that.  You ought to figure out
what's causing the performance problem, though, instead of just
zapping things ...

            regards, tom lane

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

Предыдущее
От: Tim Uckun
Дата:
Сообщение: Re: Deleting orphaned records (not exists is very slow)
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Deleting orphaned records (not exists is very slow)