MY_JOBS
MY_JOBS视图显示当前用户拥有的定时任务的详细信息。该视图同时存在于PG_CATALOG和SYS Schema下。
|
名称 |
类型 |
描述 |
|---|---|---|
|
job |
bigint |
作业ID。 |
|
log_user |
name |
创建者的UserName。 |
|
priv_user |
name |
作业执行者的UserName。 |
|
dbname |
name |
创建作业的数据库名称。 |
|
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 |
如果status字段取值为'd',则为'y',否则为'n'。 |
|
status |
"char" |
本步骤的执行状态,取值范围:('r'、's'、'f'、'd'),默认为'r',取值含义:
|
|
interval |
text |
用来计算下次运行时间的时间表达式,如果为null则表示定时任务只执行一次。 |
|
failures |
smallint |
失败计数,若作业连续执行失败16次,则不再继续执行。 |
|
what |
text |
可执行的作业。 |