DROP_MATERIALIZED_VIEW
remove a materialized view
- Provided by: postgresql-client-18 (Version: 18.3-1)
- Source: postgresql-18
- Report a bug
remove a materialized view
DROP MATERIALIZED VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
DROP MATERIALIZED VIEW drops an existing materialized view. To execute this command you must be the owner of the materialized view.
IF EXISTS
name
CASCADE
RESTRICT
This command will remove the materialized view called order_summary:
DROP MATERIALIZED VIEW order_summary;
DROP MATERIALIZED VIEW is a PostgreSQL extension.
CREATE MATERIALIZED VIEW (CREATE_MATERIALIZED_VIEW(7)), ALTER MATERIALIZED VIEW (ALTER_MATERIALIZED_VIEW(7)), REFRESH MATERIALIZED VIEW (REFRESH_MATERIALIZED_VIEW(7))