Re: Sleep functions - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Sleep functions
Date
Msg-id 87hddihvrx.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Sleep functions  ("Dave Page" <dpage@vale-housing.co.uk>)
Responses Re: Sleep functions
List pgsql-hackers
"Dave Page" <dpage@vale-housing.co.uk> writes:

> Sure it's trivial in various languages, even in trusted PL/Tcl:
> 
> CREATE FUNCTION sleep(integer) RETURNS void AS $$
> after [expr $1 * 1000]
> $$ LANGUAGE pltcl STRICT;

Do any of the trusted languages count branches and abort after some large
number to prevent trusted code from causing long delays?

-- 
greg



pgsql-hackers by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: Sleep functions
Next
From: Robert Treat
Date:
Subject: Re: Sleep functions