PG_JOB_SINGLE
PG_JOB_SINGLE视图用于显示当前节点的作业信息。
名字 | 类型 | 描述 |
|---|---|---|
job_id | bigint | 作业ID。 |
current_postgres_pid | bigint | 如果当前任务正在被执行,那么此处记录运行此任务的postgres线程ID。默认为-1,表示此任务未被执行或已执行完毕。 |
log_user | name | 创建者的UserName。 |
priv_user | name | 作业执行者的UserName。 |
dbname | name | 标识作业执行的数据库名。 |
node_name | name | 标识当前作业是在哪个CN上创建和执行。 |
job_status | text | 当前任务的执行状态,取值范围:('r', 's', 'f', 'd','p','w','l'),默认为's',取值含义:
说明:
|
start_date | timestamp without time zone | 作业第一次开始执行时间,时间精确到毫秒。 |
next_run_date | timestamp without time zone | 下次定时执行任务的时间,时间精确到毫秒。 |
failure_count | smallint | 连续失败计数。 |
interval | text | 作业执行的重复时间间隔。 |
last_start_date | timestamp without time zone | 上次运行开始时间,时间精确到毫秒。 |
last_end_date | timestamp without time zone | 上次运行的结束时间,时间精确到毫秒。 |
last_suc_date | timestamp without time zone | 上次成功运行的开始时间,时间精确到毫秒。 |
this_run_date | timestamp without time zone | 正在运行任务的开始时间,时间精确到毫秒。 |
nspname | name | 作业运行时所在的命名空间的名称。 |
what | text | 作业内容。 |

