简体   繁体   English

为什么我的postgres工作停止运行?

[英]why my postgres job stop running?

I create a job to clean the database every day at 01:00. 我每天01:00创建一个作业来清理数据库。

According to statistic run OK from 3 months. 据统计从3个月开始运行即可。 But today i realize the database size was very big so i check the jobs and hasn't run for one month. 但是今天我意识到数据库很大,所以我检查了工作并且没有运行一个月。

Properties say last run was '10/27/2014' and statistics confirm run successful. 属性显示上一次运行是“ 2014年10月27日”,统计数据表明运行成功。
Also say next run will be '10/28/2014' but looks like never run and stay frozen since then. 还要说下一次运行将是“ 2014年10月28日”,但此后似乎再也不会运行并保持冻结状态。
(I'm using dd/mm/yyyy format) (我使用的是dd / mm / yyyy格式)

So why stop running? 那为什么要停止运行呢?
There is a way to restart the job or should i go and delete and recreate the job? 有一种方法可以重新启动作业,还是应该删除并重新创建作业?
How can i know a job didn't run? 我怎么知道没有工作?
I guess i can write a code if job isn't successful but what about if never execute? 我想如果工作不成功我可以写一个代码,但是如果从不执行怎么办?

在此处输入图片说明

Windows Server 2008 Windows Server 2008
PostgreSQL 9.3.2, compiled by Visual C++ build 1600, 64-bit PostgreSQL 9.3.2,由Visual C ++ build 1600编译,64位

The problem was the pgAgent service wasn't running. 问题在于pgAgent服务未运行。

When I Restart the Postgres service: 当我重新启动Postgres服务时:

Postgres service stop Postgres服务站
pgAgent stop because is a dependent service pgAgent停止,因为是依赖服务
Postgres service start Postgres服务开始
but pgAgent didn't 但是pgAgent没有

Here you can see pgAgent didn't start. 在这里您可以看到pgAgent没有启动。 在此处输入图片说明

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

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