Re: SLEEP in posgresql

Поиск
Список
Период
Сортировка
Искать
От
Richard Huxton
Тема
Re: SLEEP in posgresql
Дата
Msg-id
470C903E.1090208@archonet.com
Ответ на
Re: SLEEP in posgresql (Jasbinder Singh Bali)
Список
Дерево обсуждения
SLEEP in posgresql "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: SLEEP in posgresql Guy Rouillier <guyr-ml1@burntmail.com>
Re: SLEEP in posgresql "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: SLEEP in posgresql Michal Taborsky - Internet Mall <michal.taborsky@mall.cz>
Re: SLEEP in posgresql "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: SLEEP in posgresql Richard Huxton <dev@archonet.com>
Re: SLEEP in posgresql "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: SLEEP in posgresql Richard Huxton <dev@archonet.com>
Re: SLEEP in posgresql "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: SLEEP in posgresql "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: SLEEP in posgresql Richard Huxton <dev@archonet.com>
Jasbinder Singh Bali wrote:
> my loop is a busy wait and keeps iterating until a=b condition is met.
> However, it would lead to millions of instructions executing per second.
> 
> So to save resources, I want to keep a sleep before re-iterating. Don't
> understand how is SLEEP disastrous here even if i don't know when is my loop
> going to end

What if it takes a week?

That means you'll have a transaction open for a week blocking vacuum 
from reclaiming space.

-- 
   Richard Huxton
   Archonet Ltd
В списке pgsql-general по дате отправления
От: Jasbinder Singh Bali
Дата:
Сообщение: Re: SLEEP in posgresql
От: Albe Laurenz
Дата:
Сообщение: Re: replacing single quotes
FAQ