简体   繁体   English

使用pgagent的Postgresql作业计划程序在更新查询中给出错误

[英]Postgresql job scheduler using pgagent giving error with update query

I have created a job scheduler using pgagent in postgresql : 我已经在postgresql使用pgagent创建了一个工作计划程序:

What I did is mentioned as screen shots 屏幕截图提到了我所做的事情 工作

步

步骤查询时间表

I had created like this to update name in my database field in a certain time. 我这样创建的目的是要在一定时间内更新数据库字段中的名称。 But when I check it is getting failed. 但是当我检查它失败时。 The failed status as follows: 失败状态如下: 失败状态步骤结果 What I did wrong? 我做错了什么? How can I correct it? 我该如何纠正?

I have also faced the same problem exactly. 我也正好面临同样的问题。 By trial and error, I changed the Connection Type from Local to Remote and gave the following connection string 通过反复试验,我将连接类型从本地更改为远程,并给出了以下连接字符串

user=some_user password=some_password host=localhost port=5432 dbname=some_database

in the properties of the Step. 在步骤的属性中。 And, it worked. 而且,它起作用了。 So, the trick is to treat even the local server as a remote server. 因此,诀窍是甚至将本地服务器视为远程服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM