Re: how to start a procedure after postgresql started.

From: jun yang <slickqt(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: how to start a procedure after postgresql started.
Date: 2011-05-22 12:49:31
Message-ID: BANLkTin-1P2mLd2A_n2r-7rMGKOB6MndPg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2011/5/22 Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>:
> On Sat, May 21, 2011 at 10:57 PM, jun yang <slickqt(at)gmail(dot)com> wrote:
>> now all the question:
>> 1.how start a procedure or a script after postgresql start.
>
> Do you need this stored procedure or script to always run at pg
> database start?  Or every time a client connects to the database?  Or
> every  minute, or every hour or every day?
i am just want pg execute the given stored procedure every time after
pg sucess start.
>
>> 2.how to get notify when a table created.
>> 3.how to get notify when a database created.
>
> Set db to log all dll, scrape logs, email timestamp from table or db
> creation.  Do you need more info other than just that it was created?
>
well,it may be not what i want,
if i can start a procedure after pg start,then i would like to get
notify when new object create,of course,i should be subcribe first.
now what i interest is the database created, when a new database
created,i want to init some schme and table,index in the it.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Keller 2011-05-22 13:21:45 Re: Values larger than 1/3 of a buffer page cannot be indexed (hstore)
Previous Message jun yang 2011-05-22 12:36:02 Re: how to start a procedure after postgresql started.