crontab中执行postgresql命令

可以在crontab中增加如下命令

0 2 * * * /opt/pgsql9.1/bin/psql -d taskmanager -U postgres -c "select * slice_data();"

原文地址:https://www.cnblogs.com/Jerryshome/p/2352705.html