Re: TODO-item: Add sleep() function, remove from regress.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: TODO-item: Add sleep() function, remove from regress.c
Дата
Msg-id 23891.1136857836@sss.pgh.pa.us
обсуждение исходный текст
Ответ на TODO-item: Add sleep() function, remove from regress.c  (Joachim Wieland <joe@mcknight.de>)
Ответы Re: TODO-item: Add sleep() function, remove from regress.c
Список pgsql-patches
Joachim Wieland <joe@mcknight.de> writes:
> I'd personally prefer to call the function pg_sleep(), but since it is
> called sleep() on the TODO list and in previous discussions, I kept the
> name. The internal function is called pg_sleep() however.

pg_sleep seems like a better idea to me too.

Why is the function defined to take numeric rather than float8?
float8 is a whole lot easier to work with internally.  (Performance
doesn't seem like an issue here, but length and readability of the code
are worth worrying about.)  Further, you could avoid assuming that the
machine has working int64 arithmetic, which is an assumption I still
think we should avoid everywhere that it's not absolutely essential.

The proposed regression test seems unacceptably fragile, as well as
rather pointless.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Inconsistent syntax in GRANT
Следующее
От: Tom Lane
Дата:
Сообщение: Re: TODO-item: Add sleep() function, remove from regress.c