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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: TODO-item: Add sleep() function, remove from regress.c
Дата
Msg-id 7968.1136951079@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: TODO-item: Add sleep() function, remove from regress.c  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-patches
Andrew Dunstan <andrew@dunslane.net> writes:
> Jim C. Nasby wrote:
>> Won't this result in a call to pg_sleep with a long sleep time ending up
>> sleeping noticeably longer than requested?

> Looks like it to me.

Something on the order of 1% longer, hm?  (1 extra clock tick per second,
probably.)  Can't get excited about it --- *all* implementations of sleep
say that the time is minimum not exact.

            regards, tom lane

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

Предыдущее
От: Mark Kirkwood
Дата:
Сообщение: Re: Summary table trigger example race condition
Следующее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: TODO-item: Add sleep() function, remove from regress.c