Samples
Remove all policies from a namedexample_continuous_aggregate. This includes refresh policies,
policies, and data retention policies. It doesn’t include custom jobs:
Arguments
The syntax is:Returns
Returnstrue if successful.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Remove all policies from a continuous aggregate
timescaledb_experimental.remove_all_policies(
relation REGCLASS,
if_exists BOOL = false
) RETURNS BOOL
example_continuous_aggregate. This includes refresh policies,
policies, and data retention policies. It doesn’t include custom jobs:
SELECT timescaledb_experimental.remove_all_policies('example_continuous_aggregate');
SELECT timescaledb_experimental.remove_all_policies(
relation = '<view_name>',
if_exists = true | false
);
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
relation | REGCLASS | - | ✔ | The to remove all policies from |
if_exists | BOOL | false | - | When true, prints a warning instead of erroring if any policies are missing. |
true if successful.