Search Postgresql Archives

Re: Regular function

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

 






On Sat, Mar 30, 2013 at 3:13 AM, John R Pierce <pierce@xxxxxxxxxxxx> wrote:
On 3/29/2013 10:54 AM, Yuriy Rusinov wrote:
I have to write pl/pgsql function that has to be triggered not before/after insert, but in definite time. Does postgresql allows to do this ?


there is no 'cron' built into postgresql.   you could write your function, then have an external cron job invoke it, like: psql -c "select yourfunction()"
Note also that if you are planning some development with the coming release 9.3, you could also achieve that inside the server by using a custom bgworker.
--
Michael

[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