Re: Question - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: Question
Date
Msg-id 4A589BAC.1030801@iol.ie
Whole thread Raw
In response to Question  (Jorge Arangoitia Fernandez Baca <jarangoitia@healtechnology.com.pe>)
List pgsql-general
On 10/07/2009 21:56, Jorge Arangoitia Fernandez Baca wrote:

> I want to know if you can create a store procedure that run
> automatically after a certain time, something like a timer in java. If
> it exists, could you tell me how it is implemented??

Put your function in a file, and then create a cron job that runs psql
taking its input from the file:

  psql -f <your_file> <your-database>

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

pgsql-general by date:

Previous
From: Mark Felegyhazi
Date:
Subject: INSERT only unique records
Next
From: Martin Gainty
Date:
Subject: Re: Using Postgres to store genetic data