From: Don Drake <dondrake@gmail.com>
To: Michael Fuhr <mike@fuhr.org>
Cc: John DeSoi <desoi@pgedit.com>
Cc: Guido Barosio <gbarosio@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: sleep?
Date: Tue, 23 Aug 2005 09:42:27 -0500
Message-ID: <6c21003b05082307427ea67279@mail.gmail.com> (raw)
In-Reply-To: <20050822140133.GA60020@winnie.fuhr.org>
References: <6c21003b050821122278e3d7d5@mail.gmail.com>
<f7f6b4c705082114094f41bff7@mail.gmail.com>
<D9712202-F287-4CCF-A9C2-EE8A7E11AD83@pgedit.com>
<6c21003b05082206341411de2d@mail.gmail.com>
<20050822140133.GA60020@winnie.fuhr.org>
Sorry for the delay in replying.
The use-case that I have is the following. I'm writing a job-control
tracking sub-system that will store when jobs are started, finished, failed,
etc. I would like to have the ability to have a process that is requesting
to start, to actually wait a specified period time before starting. It could
wait for another job to finish. I'm writing this in plpgsql since I'm
storing status in the db.
-Don
On 8/22/05, Michael Fuhr <mike@fuhr.org> wrote:
>
> On Mon, Aug 22, 2005 at 08:34:29AM -0500, Don Drake wrote:
> > I agree that a basic function (non-CPU intensive sleep) like this should
> be
> > built in.
>
> It's being discussed in pgsql-hackers:
>
> http://archives.postgresql.org/pgsql-hackers/2005-08/msg00633.php
>
> Do you have any use cases in addition to what's already been
> mentioned? Sleeping isn't really a database operation, so there
> needs to be some justification for making it a standard function.
>
> --
> Michael Fuhr
>
--
Donald Drake
President
Drake Consulting
http://www.drakeconsult.com/http://www.MailLaunder.com/http://www.mobilemeridian.com/
312-560-1574
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: dondrake@gmail.com, mike@fuhr.org, desoi@pgedit.com, gbarosio@gmail.com
Subject: Re: sleep?
In-Reply-To: <6c21003b05082307427ea67279@mail.gmail.com>
References: <6c21003b050821122278e3d7d5@mail.gmail.com> <f7f6b4c705082114094f41bff7@mail.gmail.com> <D9712202-F287-4CCF-A9C2-EE8A7E11AD83@pgedit.com> <6c21003b05082206341411de2d@mail.gmail.com> <20050822140133.GA60020@winnie.fuhr.org> <6c21003b05082307427ea67279@mail.gmail.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