PostgreSQL(9.4)调度代理pgAgent:无法获得与数据库的连接 [英] PostgreSQL(9.4) Scheduling Agent pgAgent : Couldn't get a connection to the database
本文介绍了PostgreSQL(9.4)调度代理pgAgent:无法获得与数据库的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在尝试使用pgAgent安排工作。但是,我收到以下错误:
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"
以下是配置:
pgAgent配置:
pgAgent Configuration:
< br>
计划的作业配置:
Scheduled Job Configuration:
请帮助解决该问题。
推荐答案
我已经解决了该问题。我确实在文件 pgpass.conf 中创建了凭据条目 localhost:5432:testing:postgres: [输入密码] 在位置 C:\Users\sys * [服务用户名] * \AppData\Roaming\postgresql 。
现在它运行良好。
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.
这篇关于PostgreSQL(9.4)调度代理pgAgent:无法获得与数据库的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文