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