remove_all_policies().
Samples
Given a namedexample_continuous_aggregate with a refresh
policy and a data retention policy, remove both policies.
Throw an error if either policy doesn’t exist. If the has a
policy, leave it unchanged:
Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
relation | REGCLASS | - | ✔ | The to remove policies from |
if_exists | BOOL | false | - | When true, prints a warning instead of erroring if the policy doesn’t exist. |
policy_names | TEXT | - | - | The policies to remove. You can list multiple policies, separated by a comma. Allowed policy names are policy_refresh_continuous_aggregate, policy_compression, and policy_retention. |