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

From Andrew Dunstan
Subject Re: TODO-item: Add sleep() function, remove from regress.c
Date
Msg-id 3645.24.211.165.134.1136952886.squirrel@www.dunslane.net
Whole thread Raw
In response to TODO-item: Add sleep() function, remove from regress.c  (Joachim Wieland <joe@mcknight.de>)
List pgsql-patches
Tom Lane said:
> 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.
>

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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: TODO-item: Add sleep() function, remove from regress.c
Next
From: Neil Conway
Date:
Subject: mbutils.c memory cxt cleanup