# phpman > man > ALTER_OPERATOR_CLASS(7)

ALTER OPERATOR [CLASS(7)](https://www.chedong.com/phpMan.php/man/CLASS/7/markdown)            PostgreSQL 14.23 Documentation            ALTER OPERATOR [CLASS(7)](https://www.chedong.com/phpMan.php/man/CLASS/7/markdown)



## NAME
       ALTER_OPERATOR_CLASS - change the definition of an operator class

## SYNOPSIS
       ALTER OPERATOR CLASS _name_ USING _index_method_
           RENAME TO _new_name_

       ALTER OPERATOR CLASS _name_ USING _index_method_
           OWNER TO { _new_owner_ | CURRENT_ROLE | CURRENT_USER | SESSION_USER }

       ALTER OPERATOR CLASS _name_ USING _index_method_
           SET SCHEMA _new_schema_

## DESCRIPTION
       **ALTER** **OPERATOR** **CLASS** changes the definition of an operator class.

       You must own the operator class to use **ALTER** **OPERATOR** **CLASS**. To alter the owner, you must
       also be a direct or indirect member of the new owning role, and that role must have CREATE
       privilege on the operator class's schema. (These restrictions enforce that altering the owner
       doesn't do anything you couldn't do by dropping and recreating the operator class. However, a
       superuser can alter ownership of any operator class anyway.)

## PARAMETERS
       _name_
           The name (optionally schema-qualified) of an existing operator class.

       _index_method_
           The name of the index method this operator class is for.

       _new_name_
           The new name of the operator class.

       _new_owner_
           The new owner of the operator class.

       _new_schema_
           The new schema for the operator class.

## COMPATIBILITY
       There is no **ALTER** **OPERATOR** **CLASS** statement in the SQL standard.

## SEE ALSO
       CREATE OPERATOR CLASS (**CREATE**___**OPERATOR**___**[CLASS**(7)](https://www.chedong.com/phpMan.php/man/CLASS/7/markdown)), DROP OPERATOR CLASS
       (**DROP**___**OPERATOR**___**[CLASS**(7)](https://www.chedong.com/phpMan.php/man/CLASS/7/markdown)), ALTER OPERATOR FAMILY (**ALTER**___**OPERATOR**___**[FAMILY**(7)](https://www.chedong.com/phpMan.php/man/FAMILY/7/markdown))



PostgreSQL 14.23                                2026                         ALTER OPERATOR [CLASS(7)](https://www.chedong.com/phpMan.php/man/CLASS/7/markdown)
