ALTER MATERIALIZED VIEW statement to modify some of the WITH
clause options for a continuous aggregate view. You can only set the continuous and
create_group_indexes options when you create a continuous aggregate. ALTER MATERIALIZED VIEW also
supports the following
Postgres clauses on the continuous aggregate view:
RENAME TO: rename the continuous aggregate viewRENAME [COLUMN]: rename the continuous aggregate columnSET SCHEMA: set the new schema for the continuous aggregate viewSET TABLESPACE: move the materialization of the continuous aggregate view to the new tablespaceOWNER TO: set a new owner for the continuous aggregate view
Samples
-
Enable real-time aggregates for a continuous aggregate:
-
Enable hypercore for a continuous aggregate:
Since 2.18.0
-
Rename a column for a continuous aggregate:
Arguments
The syntax is:Returns
For standardALTER MATERIALIZED VIEW return behavior, see the PostgreSQL ALTER MATERIALIZED VIEW documentation.