info > DROP_MATERIALIZED_VIEW(7)

📛 NAME

DROP_MATERIALIZED_VIEW - remove a materialized view

🚀 Quick Reference

Use CaseCommandDescription
Drop a materialized viewDROP MATERIALIZED VIEW order_summary;Remove the materialized view
Drop if exists (avoid error)DROP MATERIALIZED VIEW IF EXISTS order_summary;No error if view missing, just notice
Drop with cascading dependenciesDROP MATERIALIZED VIEW order_summary CASCADE;Drop view and all dependent objects
Drop multiple views at onceDROP MATERIALIZED VIEW view1, view2, view3;Remove several views in one command

📋 SYNOPSIS

DROP MATERIALIZED VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

📖 DESCRIPTION

DROP MATERIALIZED VIEW drops an existing materialized view. To execute this command you must be the owner of the materialized view.

âš™ī¸ PARAMETERS

💡 EXAMPLES

This command will remove the materialized view called order_summary:

DROP MATERIALIZED VIEW order_summary;

🌐 COMPATIBILITY

DROP MATERIALIZED VIEW is a PostgreSQL extension.

📚 SEE ALSO

CREATE MATERIALIZED VIEW (CREATE_MATERIALIZED_VIEW(7)), ALTER MATERIALIZED VIEW (ALTER_MATERIALIZED_VIEW(7)), REFRESH MATERIALIZED VIEW (REFRESH_MATERIALIZED_VIEW(7))

DROP_MATERIALIZED_VIEW(7)
📛 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION âš™ī¸ PARAMETERS 💡 EXAMPLES 🌐 COMPATIBILITY 📚 SEE ALSO

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-23 23:09 @216.73.216.102
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!