Skip to main content
Remove all refresh policies from a .
remove_continuous_aggregate_policy(
    continuous_aggregate REGCLASS,
    if_exists BOOL = NULL
) RETURNS VOID
To view the existing policies, see the policies informational view.

Samples

Remove all refresh policies from the cpu_view :
SELECT remove_continuous_aggregate_policy('cpu_view');

Arguments

The syntax is:
SELECT remove_continuous_aggregate_policy(
    continuous_aggregate = '<view_name>',
    if_exists = true | false
);
NameTypeDefaultRequiredDescription
continuous_aggregateREGCLASS-Name of the the policies should be removed from
if_exists (formerly if_not_exists)BOOLfalse-When true, prints a warning instead of erroring if the policy doesn’t exist. Renamed in 2.8.