Samples
See information about recent job failures:Available columns
| Name | Type | Description |
|---|---|---|
job_id | INTEGER | The ID of the background job created to implement the policy |
proc_schema | TEXT | Schema name of the function or procedure executed by the job |
proc_name | TEXT | Name of the function or procedure executed by the job |
pid | INTEGER | The process ID of the background worker executing the job. This is NULL in the case of a job crash |
start_time | TIMESTAMP WITH TIME ZONE | Start time of the job |
finish_time | TIMESTAMP WITH TIME ZONE | Time when error was reported |
sqlerrcode | TEXT | The error code associated with this error, if any. See the official Postgres documentation for a full list of error codes |
err_message | TEXT | The detailed error message |
Error retention policy
The informational viewtimescaledb_information.job_errors is defined on top
of the table _timescaledb_internal.job_errors in the internal schema. To
prevent this table from growing too large, a system background job
Error Log Retention Policy [2] is enabled by default,
with this configuration:
tsdbadmin. In an on-premise installation, the owner of the
job is the same as the extension owner.
The owner of the retention job can alter it and delete it.
For example, the owner can change the retention interval like this: