Re: Scheduled function ?

From: Aarni Ruuhimäki <aarni(at)kymi(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Scheduled function ?
Date: 2006-05-04 14:59:42
Message-ID: 200605041759.42760.aarni@kymi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Thursday 04 May 2006 17:50, Daniel T. Staal wrote:
> On Thu, May 4, 2006 10:37 am, Aarni Ruuhimäki said:
> > Hi,
> >
> > What's the best / easiest way to run a function as a 'scheduled task' ?
> >
> > My current platform is FC2 / PostgreSQL 8.0.2 and the stock report
> > application is in php.
>
> Probably cron. Write a script to call the function, then have cron call
> it at appropriate times.
>
> Daniel T. Staal
>

Hi,

Yes, I thought so. What would the syntax of such a script ?

Something like:

#!/bin/bash
#

/usr/local/pgsql/bin/psql db_name

run a function ?

#eof

Cronned for user postgres.

BR,

Aarni

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Christoph Frick 2006-05-04 15:04:26 Re: Scheduled function ?
Previous Message Daniel T. Staal 2006-05-04 14:50:18 Re: Scheduled function ?