Re: Stored procedure in PostgreSQL

From: Arian Prins <prinsarian(at)zonnet(dot)nl>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Stored procedure in PostgreSQL
Date: 2002-03-12 08:24:49
Message-ID: 3C8DBB50.FAA7FE38@zonnet.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Basically you would use your operating-systems cron (or equivalent)
system.

1. Setup a query that executes the function, put it in a file;
2. add something like this to your crontab:
10 03 * * * /path-to-psql/psql < the-file-from-step-1
this would execute your at 10 minutes past 3 (in the morning), every day
(*) of every month (*) regardless of the weekday (*).

Read up on man crontab for more info.

Success,
Arian.

Robert schreef:

> I would like to start stored procedure (function) at specific time and
> repeate stored procedure every day.
> Is it posible in PostgreSQl?
>
> Thanks.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Art Nicewick 2002-03-12 08:35:28 Re: callable statement please
Previous Message Oliver Elphick 2002-03-12 08:03:53 Re: Can't get ODBC from Windows to Linux/Postgres to work