Re: Start automatically a function at startup of postgresql server

From: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
To: "dfx(at)dfx(dot)it" <dfx(at)dfx(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Start automatically a function at startup of postgresql server
Date: 2009-07-04 16:43:42
Message-ID: 65937bea0907040943h2279e3ebh94f4cabf607d69b8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Jul 4, 2009 at 2:21 PM, dfx(at)dfx(dot)it <dfx(at)dfx(dot)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[(dot)singh](at)EnterpriseDB(dot)com
singh(dot)gurjeet(at){ gmail | hotmail | indiatimes | yahoo }.com
Mail sent from my BlackLaptop device

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2009-07-04 16:50:22 Re: Installing plpython on 8.4
Previous Message abdelhak benmohamed 2009-07-04 13:55:46 about pg_stat_get_db_xact_commit