Re: Sleep functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Sleep functions
Дата
Msg-id 5404.1124673200@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Sleep functions  (Michael Fuhr <mike@fuhr.org>)
Ответы Re: Sleep functions  ("Greg Sabino Mullane" <greg@turnstep.com>)
Re: Sleep functions  (Michael Fuhr <mike@fuhr.org>)
Re: Sleep functions  (Michael Adler <adler@pobox.com>)
Список pgsql-hackers
Michael Fuhr <mike@fuhr.org> writes:
> What do people think of exposing pg_usleep() to the user?

I'm not real enthused about it.  Generally speaking, a sleep() on the
database side means you are idling while holding locks, and that does
not seem like something we want to encourage people to do.

As other responders noted, it's trivial to program this in any of the
untrusted PL languages,  So what you're really proposing is that we give
sleep() to non-superusers, and that seems like a bit of a hard sell.
Let's see a use-case or three.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: data on devel code perf dip
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Sleep functions