Search Postgresql Archives

Re: Run procedure at startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Saleem EDAH-TALLY wrote:
Is there a way to run a pl/pgsql automatically at server startup ?

in your postgres startup script launch a session with `psql ... -c "some sql commands"` or `psql ... -f somescript.sql` ...


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

functions are called from within a transaction. if you did this, that transaction would never end, and this would prevent VACUUM from cleaning up any freed tuples from newer than the start of that transaction. Not good. you could, however, have a system daemon that periodically invokes a plpgsql function.


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

no.


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

someone else will have to chime in here.



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux