From: | Darren Duncan <darren(at)darrenduncan(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: how to start a procedure after postgresql started. |
Date: | 2011-05-22 05:41:53 |
Message-ID: | 4DD8A221.3020405@darrenduncan.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Pavel Stehule wrote:
> Hello
>
> 2011/5/22 jun yang <slickqt(at)gmail(dot)com>:
>> now all the question:
>> 1.how start a procedure or a script after postgresql start.
>> 2.how to get notify when a table created.
>> 3.how to get notify when a database created.
>
> Probably it isn't possible with Pg 9.0 and older. Maybe it is possible
> with callbacks for SE-Linux support in 9.1, but you have to write
> module in C.
Well, if you can run a stored procedure automatically when Postgres starts, that
looks like a necessary step to being able to implement an entire application
inside Postgres.
Starting Postgres is running the application. The analogy is that Postgres is
the VM/language interpreter and the stored procedure is the script to run.
Now if said stored procedure has access to features that collectively let it be
computationally complete, including arbitrary user I/O, then you're done.
-- Darren Duncan
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2011-05-22 06:06:20 | Re: how to start a procedure after postgresql started. |
Previous Message | Pavel Stehule | 2011-05-22 05:09:36 | Re: how to start a procedure after postgresql started. |