Re: Start automatically a function at startup of postgresql server - Mailing list pgsql-general

From Gurjeet Singh
Subject Re: Start automatically a function at startup of postgresql server
Date
Msg-id 65937bea0907040943h2279e3ebh94f4cabf607d69b8@mail.gmail.com
Whole thread Raw
In response to Start automatically a function at startup of postgresql server  ("dfx@dfx.it" <dfx@dfx.it>)
List pgsql-general
On Sat, Jul 4, 2009 at 2:21 PM, dfx@dfx.it <dfx@dfx.it> wrote:
Dear Sirs,

Is it possible to start a function (a my function) when the
server postgres is started? and how I can do?


No.. There's no way that can be done in Postgres. Although you can add something to your startup scripts that connects to the DB immediately after starting it, and calls the function you need.

Best regards,
--
Lets call it Postgres

EnterpriseDB      http://www.enterprisedb.com

gurjeet[.singh]@EnterpriseDB.com
singh.gurjeet@{ gmail | hotmail | indiatimes | yahoo }.com
Mail sent from my BlackLaptop device

pgsql-general by date:

Previous
From: abdelhak benmohamed
Date:
Subject: about pg_stat_get_db_xact_commit
Next
From: Peter Eisentraut
Date:
Subject: Re: Installing plpython on 8.4