1ALTER OPERATOR CLASS(7)  PostgreSQL 15.4 Documentation ALTER OPERATOR CLASS(7)
2
3
4

NAME

6       ALTER_OPERATOR_CLASS - change the definition of an operator class
7

SYNOPSIS

9       ALTER OPERATOR CLASS name USING index_method
10           RENAME TO new_name
11
12       ALTER OPERATOR CLASS name USING index_method
13           OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
14
15       ALTER OPERATOR CLASS name USING index_method
16           SET SCHEMA new_schema
17

DESCRIPTION

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

PARAMETERS

30       name
31           The name (optionally schema-qualified) of an existing operator
32           class.
33
34       index_method
35           The name of the index method this operator class is for.
36
37       new_name
38           The new name of the operator class.
39
40       new_owner
41           The new owner of the operator class.
42
43       new_schema
44           The new schema for the operator class.
45

COMPATIBILITY

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

SEE ALSO

50       CREATE OPERATOR CLASS (CREATE_OPERATOR_CLASS(7)), DROP OPERATOR CLASS
51       (DROP_OPERATOR_CLASS(7)), ALTER OPERATOR FAMILY
52       (ALTER_OPERATOR_FAMILY(7))
53
54
55
56PostgreSQL 15.4                      2023              ALTER OPERATOR CLASS(7)
Impressum