---
name: "alter_operator_class"
section: "7"
platform: "linux"
package: "postgresql"
version: "7.4.7-6sarge6"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/alter_operator_class"
---

# alter\_operator\_class(7)

change the definition of an operator class

## NAME

ALTER OPERATOR CLASS - change the definition of an operator class

## SYNOPSIS

```
ALTER OPERATOR CLASS name USING index_method RENAME TO newname

```

## DESCRIPTION

**ALTER OPERATOR CLASS** changes the definition of an operator class. The only functionality is to rename the 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 is for.

- *newname*

  The new name of the operator class.

## COMPATIBILITY

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

## SEE ALSO

CREATE OPERATOR CLASS \[[**create\_operator\_class**(7)](/create_operator_class/7.md)\], DROP OPERATOR CLASS \[**drop\_operator\_class**(l)\]
