Optional arguments
| Name | Type | Description |
|---|---|---|
override | BOOLEAN | If false, the old continuous aggregate keeps its name. The new continuous aggregate is named <OLD_CONTINUOUS_AGGREGATE_NAME>_new. If true, the new continuous aggregate gets the old name. The old continuous aggregate is renamed <OLD_CONTINUOUS_AGGREGATE_NAME>_old. Defaults to false. |
drop_old | BOOLEAN | If true, the old continuous aggregate is deleted. Must be used together with override. Defaults to false. |
===== PAGE: https://docs.tigerdata.com/api/continuous-aggregates/drop_materialized_view/ =====
Examples:
Example 1 (sql):
sql
CALL cagg_migrate (
cagg REGCLASS,
override BOOLEAN DEFAULT FALSE,
drop_old BOOLEAN DEFAULT FALSE
);