DROP_MATERIALIZED_VIEW(7pg16)

πŸ“¦ version 16.15, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay bestie, welcome to the DROP_MATERIALIZED_VIEW(7) page from the PostgreSQL 16.15 Documentation. This command is literally called DROP_MATERIALIZED_VIEW, and its whole vibe is: remove a materialized view. πŸ’…

🌸 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. no cap, that's the rule. 🫢

πŸŽ€ PARAMETERS πŸŽ€

  • IF EXISTS β€” do not throw an error if the materialized view does not exist. A notice is issued in this case. πŸ™ˆ
  • name β€” the name (optionally schema-qualified) of the materialized view to remove. ✨
  • CASCADE β€” automatically drop objects that depend on the materialized view (such as other materialized views, or regular views), and in turn all objects that depend on those objects (see Section 5.14). πŸ”₯
  • RESTRICT β€” refuse to drop the materialized view if any objects depend on it. This is the default. πŸ’€

πŸ’… 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 🫢


that's the whole DROP_MATERIALIZED_VIEW(7) situation, bestie. This page is from PostgreSQL 16.15, dated 2026, footer energy: DROP MATE...IZED VIEW(7). go be the owner of your materialized views and slay πŸ’–βœ¨

πŸ“¦ where this page comes from