更新时间:2024-03-06 GMT+08:00
分享

USER_JOBS

USER_JOBS视图为当前用户所属定时任务的详细信息。需要有系统管理员权限才可以访问此系统视图。

表1 USER_JOBS字段

名字

类型

描述

job

int4

作业ID。

log_user

name not null

创建者的UserName。

priv_user

name not null

作业执行者的UserName。

dbname

name not null

作业创建数据库名字。

start_date

timestamp without time zone

作业的开始时间。

start_suc

text

作业成功执行的开始时间。

last_date

timestamp without time zone

上次运行开始时间。

last_suc

text

上次成功运行的开始时间。

this_date

timestamp without time zone

正在运行任务的开始时间。

this suc

text

正在运行任务成功的开始时间。

next_date

timestamp without time zone

任务下次执行时间。

next suc

text

任务下次成功执行时间。

broken

text

任务状态

如果为Y,不尝试运行此任务。

如果为N,将尝试执行此任务。

status

char

当前任务的执行状态,取值范围:('r', 's', 'f', 'd'),默认为'r',取值含义:

  • r=running
  • s=successfully finished
  • f= job failed
  • d=aborted

interval

text

用来计算下次运行时间的时间表达式,如果为nul,l则表示定时任务只执行一次。

failures

smallint

连续失败计数。

what

text

可执行的作业。

分享:

    相关文档

    相关产品