{
    "content": [
        {
            "type": "text",
            "text": "# DROP_CAST(7) (man)\n\n**Summary:** DROPCAST - remove a cast\n\n**Synopsis:** DROP CAST [ IF EXISTS ] (sourcetype AS targettype) [ CASCADE | RESTRICT ]\n\n## Examples\n\n- `To drop the cast from type text to type int:`\n- `DROP CAST (text AS int);`\n\n## See Also\n\n- CREATECAST(7)\n- CAST(7)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (5 lines)\n- **PARAMETERS** (13 lines)\n- **EXAMPLES** (4 lines)\n- **COMPATIBILITY** (2 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nDROPCAST - remove a cast\n\n### SYNOPSIS\n\nDROP CAST [ IF EXISTS ] (sourcetype AS targettype) [ CASCADE | RESTRICT ]\n\n### DESCRIPTION\n\nDROP CAST removes a previously defined cast.\n\nTo be able to drop a cast, you must own the source or the target data type. These are the\nsame privileges that are required to create a cast.\n\n### PARAMETERS\n\nIF EXISTS\nDo not throw an error if the cast does not exist. A notice is issued in this case.\n\nsourcetype\nThe name of the source data type of the cast.\n\ntargettype\nThe name of the target data type of the cast.\n\nCASCADE\nRESTRICT\nThese key words do not have any effect, since there are no dependencies on casts.\n\n### EXAMPLES\n\nTo drop the cast from type text to type int:\n\nDROP CAST (text AS int);\n\n### COMPATIBILITY\n\nThe DROP CAST command conforms to the SQL standard.\n\n### SEE ALSO\n\nCREATE CAST (CREATECAST(7))\n\n\n\nPostgreSQL 14.23                                2026                                    DROP CAST(7)\n\n"
        }
    ],
    "structuredContent": {
        "command": "DROP_CAST",
        "section": "7",
        "mode": "man",
        "summary": "DROPCAST - remove a cast",
        "synopsis": "DROP CAST [ IF EXISTS ] (sourcetype AS targettype) [ CASCADE | RESTRICT ]",
        "flags": [],
        "examples": [
            "To drop the cast from type text to type int:",
            "DROP CAST (text AS int);"
        ],
        "see_also": [
            {
                "name": "CREATECAST",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CREATECAST/7/json"
            },
            {
                "name": "CAST",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CAST/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}