{
    "content": [
        {
            "type": "text",
            "text": "# ALTER_OPERATOR_CLASS (man)\n\n## NAME\n\nALTEROPERATORCLASS - change the definition of an operator class\n\n## SYNOPSIS\n\nALTER OPERATOR CLASS name USING indexmethod\nRENAME TO newname\nALTER OPERATOR CLASS name USING indexmethod\nOWNER TO { newowner | CURRENTROLE | CURRENTUSER | SESSIONUSER }\nALTER OPERATOR CLASS name USING indexmethod\nSET SCHEMA newschema\n\n## DESCRIPTION\n\nALTER OPERATOR CLASS changes the definition of an operator class.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **PARAMETERS**\n- **COMPATIBILITY**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "ALTER_OPERATOR_CLASS",
        "section": "",
        "mode": "man",
        "summary": "ALTEROPERATORCLASS - change the definition of an operator class",
        "synopsis": "ALTER OPERATOR CLASS name USING indexmethod\nRENAME TO newname\nALTER OPERATOR CLASS name USING indexmethod\nOWNER TO { newowner | CURRENTROLE | CURRENTUSER | SESSIONUSER }\nALTER OPERATOR CLASS name USING indexmethod\nSET SCHEMA newschema",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "CREATEOPERATORCLASS",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CREATEOPERATORCLASS/7/json"
            },
            {
                "name": "DROPOPERATORCLASS",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/DROPOPERATORCLASS/7/json"
            },
            {
                "name": "ALTEROPERATORFAMILY",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/ALTEROPERATORFAMILY/7/json"
            },
            {
                "name": "CLASS",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CLASS/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "ALTEROPERATORCLASS - change the definition of an operator class\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "ALTER OPERATOR CLASS name USING indexmethod\nRENAME TO newname\n\nALTER OPERATOR CLASS name USING indexmethod\nOWNER TO { newowner | CURRENTROLE | CURRENTUSER | SESSIONUSER }\n\nALTER OPERATOR CLASS name USING indexmethod\nSET SCHEMA newschema\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "ALTER OPERATOR CLASS changes the definition of an operator class.\n\nYou must own the operator class to use ALTER OPERATOR CLASS. To alter the owner, you must\nalso be a direct or indirect member of the new owning role, and that role must have CREATE\nprivilege on the operator class's schema. (These restrictions enforce that altering the owner\ndoesn't do anything you couldn't do by dropping and recreating the operator class. However, a\nsuperuser can alter ownership of any operator class anyway.)\n",
                "subsections": []
            },
            "PARAMETERS": {
                "content": "name\nThe name (optionally schema-qualified) of an existing operator class.\n\nindexmethod\nThe name of the index method this operator class is for.\n\nnewname\nThe new name of the operator class.\n\nnewowner\nThe new owner of the operator class.\n\nnewschema\nThe new schema for the operator class.\n",
                "subsections": []
            },
            "COMPATIBILITY": {
                "content": "There is no ALTER OPERATOR CLASS statement in the SQL standard.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "CREATE OPERATOR CLASS (CREATEOPERATORCLASS(7)), DROP OPERATOR CLASS\n(DROPOPERATORCLASS(7)), ALTER OPERATOR FAMILY (ALTEROPERATORFAMILY(7))\n\n\n\nPostgreSQL 14.23                                2026                         ALTER OPERATOR CLASS(7)",
                "subsections": []
            }
        }
    }
}