ALTER MATERIALIZED VIEW (Continuous Aggregate) Community
ALTER MATERIALIZED VIEW
statement can be used to modify some of the WITH
clause options for the continuous aggregate view. ALTER MATERIALIZED VIEW
statement also supports the following PostgreSQL clauses on the continuous aggregate view:
RENAME TO
clause to rename the continuous aggregate view;SET SCHEMA
clause to set the new schema for the continuous aggregate view;SET TABLESPACE
clause to move the materialization of the continuous aggregate view to the new tablespace;OWNER TO
clause to set new owner for the continuous aggregate view.
ALTER MATERIALIZED VIEW <view_name> SET ( timescaledb.<option> = <value> [, ... ] )
Parameters
Name | Description |
---|---|
<view_name> | Name (optionally schema-qualified) of continuous aggregate view to be created. |
Sample Usage
To disable real-time aggregates for a continuous aggregate:
ALTER MATERIALIZED VIEW contagg_view SET (timescaledb.materialized_only = true);
The only option that currently can be modified with ALTER MATERIALIZED VIEW
is materialized_only
. The other options continuous
and create_group_indexes
can only be set when creating the continuous aggregate.
当前内容版权归 TimescaleDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 TimescaleDB .