Re: Is there anyway to...

From: "Ian Harding" <iharding(at)destinydata(dot)com>
To: "louis gonzales" <gonzales(at)linuxlouis(dot)net>
Cc: brian <brian(at)zijn-digital(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Is there anyway to...
Date: 2006-11-02 19:01:26
Message-ID: 725602300611021101q27dff609j786c6edd6177de9e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-sql

On 11/2/06, louis gonzales <gonzales(at)linuxlouis(dot)net> wrote:
> Hey Brian,
> Yeah I had considered this, using cron, I just feel like that is too dirty.
>
> Actually I didn't see Andreas' post, can someone forward that?
>
> I'm running this application on Solaris 9. Ultimately what I want to
> know is, is there something that is internal to postgresql that can be
> used that doesn't need external action, to make it do some task?
>

Your original scenario had an external action, instructor login. The
daily increment is the days since account creation.

Since we don't have triggers based on login, you maybe could tickle a
function from your front-end that would simply look for students with
account age > 30 and not paid whenever the instructor logs in.

Short of that, an OS based scheduler (AT, cron, etc.) is your only
choice I can think of

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Glen Parker 2006-11-02 19:02:59 Re: Is there anyway to...
Previous Message louis gonzales 2006-11-02 18:53:42 Re: Is there anyway to...

Browse pgsql-general by date

  From Date Subject
Next Message Glen Parker 2006-11-02 19:02:59 Re: Is there anyway to...
Previous Message louis gonzales 2006-11-02 18:53:42 Re: Is there anyway to...

Browse pgsql-sql by date

  From Date Subject
Next Message Glen Parker 2006-11-02 19:02:59 Re: Is there anyway to...
Previous Message louis gonzales 2006-11-02 18:53:42 Re: Is there anyway to...