| От | Michael Fuhr |
|---|---|
| Тема | Re: Is there a way to limit CPU usage per user |
| Дата | |
| Msg-id | 20060210044034.GA64526@winnie.fuhr.org обсуждение исходный текст |
| Ответ на | Re: Is there a way to limit CPU usage per user (Luki Rustianto <lukirus@gmail.com>) |
| Ответы |
Re: Is there a way to limit CPU usage per user
|
| Список | pgsql-general |
On Fri, Feb 10, 2006 at 11:30:04AM +0700, Luki Rustianto wrote: > So how can we terminate such a long running query ? > > The idea is to make a crontab to periodicaly do a job to search a > typical "SELECT * FROM bigtable" query who has run for some hours then > to terminate them... Are you familiar with the statement_timeout setting? test=> SET statement_timeout TO 1000; -- milliseconds SET test=> SELECT <some long-running query>; ERROR: canceling statement due to statement timeout If that won't work then please explain in general terms what problem you're trying to solve, not how you're trying to solve it. -- Michael Fuhr
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера