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

空扰寡人 提交于 2020-01-04 05:33:29

问题


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:


Scheduled Job Configuration:

Please help to get it resolved.


回答1:


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.



来源:https://stackoverflow.com/questions/35410829/postgresql9-4-scheduling-agent-pgagent-couldnt-get-a-connection-to-the-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!