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

From Marin Dimitrov
Subject Re: Stored procedure in PostgreSQL
Date
Msg-id 001c01c1ca94$bb9836d0$9b0e32d4@sirma.bg
Whole thread Raw
In response to Stored procedure in PostgreSQL  (rrozboril@goldmann.sk (Robert))
List pgsql-general
----- Original Message -----
From: "Robert" <rrozboril@goldmann.sk>


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

what about writing a script that will be executed by crond every day?

the script should contain something like:

su -l postgres -c "psql -d DBNAME -c \"select * from ..... \"  "


hth,

    Marin

----
"...what you brought from your past, is of no use in your present. When
you must choose a new path, do not bring old experiences with you.
Those who strike out afresh, but who attempt to retain a little of the
old life, end up torn apart by their own memories. "




pgsql-general by date:

Previous
From: Aaron Couts
Date:
Subject: vacuum with perl dbi / pg 7.1.3
Next
From: Bo Lorentsen
Date:
Subject: Re: Stored procedure in PostgreSQL