remove_continuous_aggregate_policy()
Remove the refresh policy from a continuous aggregate.
remove_continuous_aggregate_policy(
continuous_aggregate REGCLASS,
if_exists BOOL = NULL
) RETURNS VOID
note
To view the existing continuous aggregate policies, see the policies informational view.
Required arguments
Name | Type | Description |
---|---|---|
continuous_aggregate | REGCLASS | Name of the continuous aggregate the policy should be removed from |
Optional arguments
Name | Type | Description |
---|---|---|
if_exists (formerly if_not_exists ) | BOOL | When true, prints a warning instead of erroring if the policy doesn’t exist. Defaults to false. Renamed in TimescaleDB 2.8. |
Sample usage
Remove the refresh policy from the cpu_view
continuous aggregate:
SELECT remove_continuous_aggregate_policy('cpu_view');
当前内容版权归 TimescaleDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 TimescaleDB .