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

Поиск
Список
Период
Сортировка
Искать
От
Andrew Dunstan
Тема
Re: TODO-item: Add sleep() function, remove from regress.c
Дата
Msg-id
3645.24.211.165.134.1136952886.squirrel@www.dunslane.net
Ответ на
Список
Дерево обсуждения
TODO-item: Add sleep() function, remove from regress.c Joachim Wieland <joe@mcknight.de>
Re: TODO-item: Add sleep() function, remove from regress.c Tom Lane <tgl@sss.pgh.pa.us>
Re: TODO-item: Add sleep() function, remove from regress.c Tom Lane <tgl@sss.pgh.pa.us>
Re: TODO-item: Add sleep() function, remove from regress.c Joachim Wieland <joe@mcknight.de>
Re: TODO-item: Add sleep() function, remove from regress.c "Jim C. Nasby" <jnasby@pervasive.com>
Re: TODO-item: Add sleep() function, remove from regress.c Andrew Dunstan <andrew@dunslane.net>
Re: TODO-item: Add sleep() function, remove from regress.c Tom Lane <tgl@sss.pgh.pa.us>
Re: TODO-item: Add sleep() function, remove from regress.c Tom Lane <tgl@sss.pgh.pa.us>
Re: TODO-item: Add sleep() function, remove from regress.c Tom Lane <tgl@sss.pgh.pa.us>
Tom Lane said:
> Andrew Dunstan  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.
>

Well yes, although it's cumulative. I guess I'm not excited for a different
reason - I'm having trouble imagining much of a use case.

cheers

andrew


В списке pgsql-patches по дате отправления
От: Tom Lane
Дата:
От: Neil Conway
Дата:
Сообщение: mbutils.c memory cxt cleanup
FAQ