Re: Sleep functions

From: Greg Stark <gsstark(at)mit(dot)edu>
To: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
Cc: <mike(at)fuhr(dot)org>, <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Sleep functions
Date: 2005-08-22 14:49:06
Message-ID: 87hddihvrx.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


"Dave Page" <dpage(at)vale-housing(dot)co(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Sabino Mullane 2005-08-22 14:58:42 Re: Sleep functions
Previous Message Robert Treat 2005-08-22 14:48:59 Re: Sleep functions