Re: Run procedure at startup

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Saleem EDAH-TALLY <nmset(at)netcourrier(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Run procedure at startup
Date: 2009-07-27 16:10:45
Message-ID: 162867790907270910y33220d86m38c8e0e920343213@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

2009/7/27 Saleem EDAH-TALLY <nmset(at)netcourrier(dot)com>:
> Hello,
>
> Is there a way to run a pl/pgsql automatically at server startup ?

no - only you can modify startup scripts

>
> Is there a way to run a pl/pgsql function with an infinite loop as a daemon
> ?

infinite loop is possible, but probably you need orafce or similar to
be infinite loop usable:

http://www.postgres.cz/index.php/Oracle_functionality_%28en%29#DBMS_ALERT
http://www.postgres.cz/index.php/Oracle_functionality_%28en%29#DBMS_PIPE

>
> Is there a way to start a pl/pgsql function that would persist after the
> user session has closed ?

yes - with some pooling sw like pgpool, bucardo and others

>
> Is there a way for an unprivileged user to delegate a task (allowed by
> superuser) to a superuser ?

yes - look on security definer flag
http://www.postgresql.org/docs/8.4/static/sql-createfunction.html

>
> Thanks in advance.
>
>

regards
Pavel Stehule

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2009-07-27 16:14:46 Re: Run procedure at startup
Previous Message Michael Glaesemann 2009-07-27 15:52:28 Re: Calculating the difference between timetz values