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

From Tom Lane
Subject Re: TODO-item: Add sleep() function, remove from regress.c
Date
Msg-id 7968.1136951079@sss.pgh.pa.us
Whole thread Raw
In response to Re: TODO-item: Add sleep() function, remove from regress.c  (Andrew Dunstan <andrew@dunslane.net>)
List 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 by date:

Previous
From: Mark Kirkwood
Date:
Subject: Re: Summary table trigger example race condition
Next
From: "Andrew Dunstan"
Date:
Subject: Re: TODO-item: Add sleep() function, remove from regress.c