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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>, Joachim Wieland <joe(at)mcknight(dot)de>, pgsql-patches(at)postgresql(dot)org
Subject: Re: TODO-item: Add sleep() function, remove from regress.c
Date: 2006-01-11 03:44:39
Message-ID: 7968.1136951079@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Andrew Dunstan <andrew(at)dunslane(dot)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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Tony Caduto 2006-01-11 03:52:20 Re: Question about Postgresql time fields(possible bug)
Previous Message Mark Kirkwood 2006-01-11 02:18:49 Re: Summary table trigger example race condition