Sleep functions - Mailing list pgsql-hackers

From Michael Fuhr
Subject Sleep functions
Date
Msg-id 20050821225230.GA32166@winnie.fuhr.org
Whole thread Raw
Responses Re: Sleep functions  (Andrew Dunstan <andrew@dunslane.net>)
Re: Sleep functions  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
What do people think of exposing pg_usleep() to the user?  It's
sometimes useful to have a server-side sleep function, and people
do ask about it occasionally (e.g., Don Drake today in pgsql-admin).
It's easy enough to do in PL/Perl, PL/Tcl, etc., but since the
backend already has pg_usleep(), is there any reason not to expose
it?  I'd propose both sleep() and usleep() functions.

-- 
Michael Fuhr


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: PostgreSQL 8.0.3 and Ipv6
Next
From: Andrew Dunstan
Date:
Subject: Re: Sleep functions