1ALTER OPERATOR CLASS(7) PostgreSQL 9.2.24 DocumentationALTER 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 RENAME TO new_name
10       ALTER OPERATOR CLASS name USING index_method OWNER TO new_owner
11       ALTER OPERATOR CLASS name USING index_method SET SCHEMA new_schema
12

DESCRIPTION

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

PARAMETERS

25       name
26           The name (optionally schema-qualified) of an existing operator
27           class.
28
29       index_method
30           The name of the index method this operator class is for.
31
32       new_name
33           The new name of the operator class.
34
35       new_owner
36           The new owner of the operator class.
37
38       new_schema
39           The new schema for the operator class.
40

COMPATIBILITY

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

SEE ALSO

45       CREATE OPERATOR CLASS (CREATE_OPERATOR_CLASS(7)), DROP OPERATOR CLASS
46       (DROP_OPERATOR_CLASS(7)), ALTER OPERATOR FAMILY
47       (ALTER_OPERATOR_FAMILY(7))
48
49
50
51PostgreSQL 9.2.24                 2017-11-06           ALTER OPERATOR CLASS(7)
Impressum