linux - postgresql 中的计划查询执行

标签 linux database postgresql psql

我在 linux centos 上使用 postgresql 8.4。例如,我想编写一个每小时执行一次的查询。有没有办法单独使用 postgresql 而不编写 shell 脚本并使用 cron 作业安排它?

最佳答案

您可以安装 pgAgent并安排一个job使用 pgAdmin。

Offtopic:不再支持版本 8.4,考虑升级到最近的 9.* 版本。

关于linux - postgresql 中的计划查询执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28039818/

相关文章:

sql - 开源数据库中行数的上限?

sql - 使用 sql 变量更新 PostgreSQL hstore 字段

linux - 什么负责 linux 上的字体渲染?

linux - shell脚本或linux命令递归查找public文件夹下的所有js/css文件

c++ - 我什么时候需要使用/拥有 makefile?

django/postgresql 当前事务被中止,命令被忽略直到事务 block 结束

postgresql - 时间维度中 bool 列的索引

Linux 保留堆大小

sql - 分组连续行

c# - 选择多个 CSV 并批量写入数据库