relation | REGCLASS | - | ✔ | Name of the hypertable or continuous aggregate to create the policy for |
drop_after | INTERVAL or INTEGER | - | ✔ | s fully older than this interval when the policy is run are dropped. You specify drop_after differently depending on the time column type: - TIMESTAMP, TIMESTAMPTZ, and DATE: use INTERVAL type
- Integer-based timestamps: use INTEGER type. You must set integer_now_func to match your data
|
schedule_interval | INTERVAL | NULL | - | The interval between the finish time of the last execution and the next start. |
initial_start | TIMESTAMPTZ | NULL | - | Time the policy is first run. If omitted, then the schedule interval is the interval between the finish time of the last execution and the next start. If provided, it serves as the origin with respect to which the next_start is calculated. |
timezone | TEXT | NULL | - | A valid time zone. If initial_start is also specified, subsequent executions of the retention policy are aligned on its initial start. However, daylight savings time (DST) changes may shift this alignment. Set to a valid time zone if this is an issue you want to mitigate. If omitted, UTC bucketing is performed. |
if_not_exists | BOOLEAN | false | - | Set to true to avoid an error if the drop_chunks_policy already exists. A notice is issued instead. |
drop_created_before | INTERVAL | NULL | - | s with creation time older than this cut-off point are dropped. The cut-off point is computed as now() - drop_created_before. Not supported for s yet. |