Re: [PATCH] pg_sleep(interval)

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [PATCH] pg_sleep(interval)
Дата
Msg-id CA+TgmoaQTudMc2riYt3bHTfy-cZm9gba9oT48_+gMCvCho9j8g@mail.gmail.com
обсуждение исходный текст
Ответ на [PATCH] pg_sleep(interval)  (Vik Fearing <vik.fearing@dalibo.com>)
Ответы Re: [PATCH] pg_sleep(interval)  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
On Thu, Aug 8, 2013 at 7:52 AM, Vik Fearing <vik.fearing@dalibo.com> wrote:
> Someone on IRC a while ago was complaining that there was no way to
> specify an interval for pg_sleep, so I made one.  Patch against today's
> HEAD attached.
>
> Usage: SELECT pg_sleep(interval '2 minutes');

The problem with this is that then pg_sleep would be overloaded, and
as we've found from previous experience (cf. pg_size_pretty) that can
make things that currently work start failing as ambiguous.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Server crash when using bgw_main for a dynamic bgworker
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Foreground vacuum and buffer access strategy