From: Bricklen Anderson <banderson@presinet.com>
To: Don Drake <dondrake@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: sleep?
Date: Sun, 21 Aug 2005 13:26:14 -0700
Message-ID: <4308E366.5020608@presinet.com> (raw)
In-Reply-To: <6c21003b050821122278e3d7d5@mail.gmail.com>
References: <6c21003b050821122278e3d7d5@mail.gmail.com>
Don Drake wrote:
> Is there a sleep function in plpgsql? I need to wait a period time (60
> seconds) in a while loop.
>
> I didn't see anything in the docs.
>
> Thanks.
>
> -Don
>
create or replace function sleep(integer) returns void as $$
return sleep(shift)
$$ language plperlu immutable strict;
select sleep(5);
--(sleeps for 5 seconds)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: banderson@presinet.com, dondrake@gmail.com
Subject: Re: sleep?
In-Reply-To: <4308E366.5020608@presinet.com>
References: <6c21003b050821122278e3d7d5@mail.gmail.com> <4308E366.5020608@presinet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox