Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[GENERAL] Start automatically a function at startup of postgresql server

0 views
Skip to first unread message

d...@dfx.it

unread,
Jul 4, 2009, 4:51:30 AM7/4/09
to
Dear Sirs,

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

Best regards.

Domenico Formenton


--
Sent via pgsql-general mailing list (pgsql-...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Gurjeet Singh

unread,
Jul 4, 2009, 12:43:42 PM7/4/09
to
On Sat, Jul 4, 2009 at 2:21 PM, d...@dfx.it <d...@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
0 new messages