Re: Stored procedure in PostgreSQL - Mailing list pgsql-general

From Arian Prins
Subject Re: Stored procedure in PostgreSQL
Date
Msg-id 3C8DBB50.FAA7FE38@zonnet.nl
Whole thread Raw
In response to Stored procedure in PostgreSQL  (rrozboril@goldmann.sk (Robert))
List 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.


pgsql-general by date:

Previous
From: "Paul"
Date:
Subject: Transaction on start of session ?
Next
From: DaVinci
Date:
Subject: Referential integrity violation