Re: [PATCH] pg_sleep(interval)

Поиск
Список
Период
Сортировка
Искать
От
Josh Berkus
Тема
Re: [PATCH] pg_sleep(interval)
Дата
Msg-id
520EC584.3050805@agliodbs.com
Список
Дерево обсуждения
[PATCH] pg_sleep(interval) Vik Fearing <vik.fearing@dalibo.com>
Re: [PATCH] pg_sleep(interval) Fabien COELHO <coelho@cri.ensmp.fr>
Re: [PATCH] pg_sleep(interval) Fabien COELHO <coelho@cri.ensmp.fr>
Re: [PATCH] pg_sleep(interval) Vik Fearing <vik.fearing@dalibo.com>
Re: [PATCH] pg_sleep(interval) Fabien COELHO <coelho@cri.ensmp.fr>
Re: [PATCH] pg_sleep(interval) Vik Fearing <vik.fearing@dalibo.com>
Re: [PATCH] pg_sleep(interval) Vik Fearing <vik.fearing@dalibo.com>
Re: [PATCH] pg_sleep(interval) Fabien COELHO <coelho@cri.ensmp.fr>
Re: [PATCH] pg_sleep(interval) Vik Fearing <vik.fearing@dalibo.com>
Re: [PATCH] pg_sleep(interval) Stephen Frost <sfrost@snowman.net>
Re: [PATCH] pg_sleep(interval) Andres Freund <andres@2ndquadrant.com>
Re: [PATCH] pg_sleep(interval) Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] pg_sleep(interval) Kevin Grittner <kgrittn@ymail.com>
Re: [PATCH] pg_sleep(interval) Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] pg_sleep(interval) Fabien COELHO <coelho@cri.ensmp.fr>
Re: [PATCH] pg_sleep(interval) Vik Fearing <vik.fearing@dalibo.com>
Re: [PATCH] pg_sleep(interval) Fabien COELHO <coelho@cri.ensmp.fr>
Re: [PATCH] pg_sleep(interval) Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] pg_sleep(interval) Vik Fearing <vik.fearing@dalibo.com>
Re: [PATCH] pg_sleep(interval) Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] pg_sleep(interval) Vik Fearing <vik.fearing@dalibo.com>
Re: [PATCH] pg_sleep(interval) Julien Rouhaud <rjuju123@gmail.com>
Re: [PATCH] pg_sleep(interval) Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] pg_sleep(interval) Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] pg_sleep(interval) Fabien COELHO <coelho@cri.ensmp.fr>
Re: [PATCH] pg_sleep(interval) Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] pg_sleep(interval) Greg Stark <stark@mit.edu>
Re: [PATCH] pg_sleep(interval) Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] pg_sleep(interval) Peter Eisentraut <peter_e@gmx.net>
Re: [PATCH] pg_sleep(interval) Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] pg_sleep(interval) Peter Eisentraut <peter_e@gmx.net>
Re: [PATCH] pg_sleep(interval) Fabien COELHO <coelho@cri.ensmp.fr>
Re: [PATCH] pg_sleep(interval) Fabien COELHO <coelho@cri.ensmp.fr>
Re: [PATCH] pg_sleep(interval) Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] pg_sleep(interval) Magnus Hagander <magnus@hagander.net>
On 08/16/2013 05:15 PM, Tom Lane wrote:
> Josh Berkus  writes:
>> Why not just call it pg_sleep_int()?
> 
> To me, that looks like something that would take an int.  I suppose you
> could call it pg_sleep_interval(), but that's getting pretty verbose.
> 
> The larger picture here though is that that's ugly as sin; it just flies
> in the face of the fact that PG *does* have function overloading and we
> do normally use it, not invent randomly-different function names to avoid
> using it.  We should either decide that this feature is worth the small
> risk of breakage, or reject it.  Not build a camel-designed-by-committee
> because no one would speak up for consistency of design.

Well, if that's the alternative, I'd vote for taking it.  For me,
personally, I think the usefulness of it would outstrip the number of
functions I'd have to debug.

For one thing, it's not like pg_sleep is exactly widely used, especially
not from languages like PHP which tend to treat every variable as a
string.  So this is not going to be the kind of upgrade bomb that
pg_size_pretty was.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] pg_sleep(interval)
От: Noah Misch
Дата:
FAQ