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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: TODO-item: Add sleep() function, remove from regress.c
Дата
Msg-id 27752.1137010636@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: TODO-item: Add sleep() function, remove from regress.c  (Joachim Wieland <joe@mcknight.de>)
Список pgsql-patches
Joachim Wieland <joe@mcknight.de> writes:
> I append a new version with the regression test ripped out.

Applied with revisions.  I concluded that the idea of computing the
end-time in advance had merit, so I changed the code to do it that way.
Aside from not allowing extra delay to accumulate in a multiple-second
wait, this guarantees that we cannot wait *less* than the requested
time, which is a hazard if the system has interruptible select().

Other minor comments: if you declare the function strict it is not
necessary to check for null inputs, and you were doing the float-to-int
conversion the hard way.

            regards, tom lane

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: mbutils.c memory cxt cleanup
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Inconsistent syntax in GRANT