Skip to main content
Before you can remove a materialzied view, you must remove all its dependent materialzied views.

Syntax

Parameters

Examples

This statement removes the ad_ctr_5min materialized view in the default schema (public) from the database:
This statement removes the ad_ctr_5min materialized view in the rw_schema schema from the database:

Hanging or long running DROP MATERIALIZED VIEW

If your DROP MATERIALIZED VIEW command takes a long time to run, it could be due to high barrier latency. DROP commands need to be synchronized with barriers currently. To let DROP take effect immediately, you can use the RECOVER command in a separate session.