Samples
Given a namedexample_continuous_aggregate with an
existing policy, alter the policy to compress data older
than 16 days:
Arguments
The syntax is:| Name | Type | Default | Required | Description |
|---|---|---|---|---|
relation | REGCLASS | - | ✔ | The that you want to alter policies for |
if_not_exists | BOOL | false | - | When true, prints a warning instead of erroring if the policy doesn’t exist. |
refresh_start_offset | INTERVAL or INTEGER | - | - | The start of the refresh window, expressed as an offset from the policy run time. |
refresh_end_offset | INTERVAL or INTEGER | - | - | The end of the refresh window, expressed as an offset from the policy run time. Must be greater than refresh_start_offset. |
compress_after | INTERVAL or INTEGER | - | - | s are compressed into the if they exclusively contain data older than this interval. |
drop_after | INTERVAL or INTEGER | - | - | s are dropped if they exclusively contain data older than this interval. |
INTERVAL or an INTEGER, use an
INTERVAL if your time bucket is based on timestamps. Use an INTEGER if your
time bucket is based on integers.