ALTER OPERATOR CLASS
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_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.
To use ALTER OPERATOR CLASS, you must own the operator class. To change 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 changing the owner cannot do anything you couldn't do by dropping and recreating the operator class. However, a superuser can change ownership of any operator class).
Parameters
name
The name (optionally schema-qualified) of an existing operator class.
index_method
The name of the index method this operator class serves.
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.
See Also
CREATE OPERATOR CLASS,DROP OPERATOR CLASS,ALTER OPERATOR FAMILY