Skip to main content
Since 1.3.0 You use the 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 view
  • RENAME [COLUMN]: rename the column
  • SET SCHEMA: set the new schema for the view
  • SET TABLESPACE: move the materialization of the view to the new tablespace
  • OWNER 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 standard ALTER MATERIALIZED VIEW return behavior, see the PostgreSQL ALTER MATERIALIZED VIEW documentation.