Kapil Dev
Kapil Dev

Reputation: 71

PostgreSQL(9.4) Scheduling Agent pgAgent : Couldn't get a connection to the database

I have been trying to schedule a job using pgAgent. But, I am getting the below error:

"Couldn't get a connection to the database"

Following are the configurations:

pgAgent Configuration:

pgAgent Configuration


Scheduled Job Configuration:

Scheduled Job Configuration

Please help to get it resolved.

Upvotes: 2

Views: 2814

Answers (1)

Kapil Dev
Kapil Dev

Reputation: 71

I have resolved the issue. I did make the credential entry "localhost:5432:testing:postgres:[Enter password]" in file "pgpass.conf" which exist at location "C:\Users\sys*[service username]*\AppData\Roaming\postgresql". Now it is working perfectly.

Upvotes: 5

Related Questions