Hi I need a little help to get pgagent running on a windows 2008 with postgres 9.2.1 (ipv4 & ipv6)
I'm logged into the server (remote desktop) and trying to run a job.
If i check the output from the job:
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;
I get this in jsloutput = Couldn't get a connection to the database!
When using pgadminIII to look at the job:
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)
This is my 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
Any idea what I'm missing??
- Niels