{
    "mode": "man",
    "parameter": "DROP_MATERIALIZED_VIEW",
    "section": "7",
    "url": "https://www.chedong.com/phpMan.php/man/DROP_MATERIALIZED_VIEW/7/json",
    "generated": "2026-07-05T09:18:19Z",
    "synopsis": "DROP MATERIALIZED VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]",
    "sections": {
        "NAME": {
            "content": "DROPMATERIALIZEDVIEW - remove a materialized view\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "DROP MATERIALIZED VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "DROP MATERIALIZED VIEW drops an existing materialized view. To execute this command you must\nbe the owner of the materialized view.\n",
            "subsections": []
        },
        "PARAMETERS": {
            "content": "IF EXISTS\nDo not throw an error if the materialized view does not exist. A notice is issued in this\ncase.\n\nname\nThe name (optionally schema-qualified) of the materialized view to remove.\n\nCASCADE\nAutomatically drop objects that depend on the materialized view (such as other\nmaterialized views, or regular views), and in turn all objects that depend on those\nobjects (see Section 5.14).\n\nRESTRICT\nRefuse to drop the materialized view if any objects depend on it. This is the default.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "This command will remove the materialized view called ordersummary:\n\nDROP MATERIALIZED VIEW ordersummary;\n",
            "subsections": []
        },
        "COMPATIBILITY": {
            "content": "DROP MATERIALIZED VIEW is a PostgreSQL extension.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "CREATE MATERIALIZED VIEW (CREATEMATERIALIZEDVIEW(7)), ALTER MATERIALIZED VIEW\n(ALTERMATERIALIZEDVIEW(7)), REFRESH MATERIALIZED VIEW (REFRESHMATERIALIZEDVIEW(7))\n\n\n\nPostgreSQL 14.23                                2026                       DROP MATERIALIZED VIEW(7)",
            "subsections": []
        }
    },
    "summary": "DROPMATERIALIZEDVIEW - remove a materialized view",
    "flags": [],
    "examples": [
        "This command will remove the materialized view called ordersummary:",
        "DROP MATERIALIZED VIEW ordersummary;"
    ],
    "see_also": [
        {
            "name": "CREATEMATERIALIZEDVIEW",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/CREATEMATERIALIZEDVIEW/7/json"
        },
        {
            "name": "ALTERMATERIALIZEDVIEW",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/ALTERMATERIALIZEDVIEW/7/json"
        },
        {
            "name": "REFRESHMATERIALIZEDVIEW",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/REFRESHMATERIALIZEDVIEW/7/json"
        },
        {
            "name": "VIEW",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/VIEW/7/json"
        }
    ]
}