Re: delayed input

From: "Hicham G(dot) Elmongui" <elmongui(at)cs(dot)purdue(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: delayed input
Date: 2004-10-19 18:44:34
Message-ID: cl3nal$3p0$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I need this for a side project. Is there a way to do something like this:

SELECT *
FROM DelayedTable('tablename', 5);

DelayedTable provides me with one tuple every 5 seconds.
Regards,
--h

"Hicham G. Elmongui" <elmongui(at)cs(dot)purdue(dot)edu> wrote in message
news:cl3eaj$1ggv$1(at)news(dot)hub(dot)org(dot)(dot)(dot)
> I need to select all tuples from a table, but need them to be fetched with
a
> constant delay (say 1 sec) between every consecutive tuples.
>
> The first idea that came up to my mind is to create a DelayedSeqScan
> operator, and put delay before returning the scanned tuple.
>
> Can I do this functionality using table functions?
>
> Regards,
> --h
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gary Doades 2004-10-19 18:47:38 Re: removing idle connections
Previous Message Josh Close 2004-10-19 18:32:59 Re: removing idle connections