环境: winxp, postgresql 9.0 , pgAgent-3.0.0
pgAgent是Postgresql的一个调度程序,在之前postgresql 9.0之前一直附带在pgAdmin包下,只是默认不安装。在之后的版本就单独作为一个安装包。在http://www.pgadmin.org/download/pgagent.php可以下载pgAgent程序。将下载的程序解压放在pgAdmin III目录下,运行pgagent.sql脚本,psql -U postgres -f $pginstall\pgAdmin III\pgAgent\pgagent.sql。然后安装pgagent服务,$pginstall\pgAdmin III\pgAgent INSTALL pgAgent -u postgres
-p secret hostaddr=127.0.0.1 dbname=postgres user=postgres password=secret
这样在windows服务界面上有PostgreSQL Scheduling Agent - pgAgent服务,启动它才可以运行设定的批处理程序或sql语句。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16582684/viewspace-700363/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16582684/viewspace-700363/