嗨,我需要一点帮助才能让 pgagent 在带有 postgres 9.2.1(ipv4 和 ipv6)的 Windows 2008 上运行
我已登录服务器(远程桌面)并尝试运行作业。
如果我检查作业的输出:
SELECT j.jobname, s.jstname, l.jslstart, l.jslduration, l.jsloutput
FROM pgagent.pga_jobsteplog l
JOIN pgagent.pga_jobstep s ON s.jstid = l.jsljstid
JOIN pgagent.pga_job j ON j.jobid = s.jstjobid
WHERE l.jslstart > 'now'::text::date
ORDER BY j.jobname, s.jstname, l.jslstart DESC;
我在 jsloutput 中得到了这个 = 无法连接到数据库!
使用pgadminIII查看作业时:
Enabled = checked
Connection type = local
Database = cachedb
Connection string = (It's empty can't fill when using local connection type)
Kind = sql
(doesn't help to select remote connection and fill the connection string)
这是我的 pg_hba.conf
# TYPE DATABASE USER ADDRESS METHOD
# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all 0.0.0.1/0 md5
# IPv6 local connections:
host all all ::1/128 md5
知道我错过了什么吗?
- 尼尔斯