]> begriffs open source - ai-pg/blob - full-docs/txt/sql-alteropclass.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-alteropclass.txt
1
2 ALTER OPERATOR CLASS
3
4    ALTER OPERATOR CLASS — change the definition of an operator class
5
6 Synopsis
7
8 ALTER OPERATOR CLASS name USING index_method
9     RENAME TO new_name
10
11 ALTER OPERATOR CLASS name USING index_method
12     OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
13
14 ALTER OPERATOR CLASS name USING index_method
15     SET SCHEMA new_schema
16
17 Description
18
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 be able to SET ROLE to the new owning role, and
23    that role must have CREATE privilege on the operator class's schema.
24    (These restrictions enforce that altering the owner doesn't do anything
25    you couldn't do by dropping and recreating the operator class. However,
26    a superuser can alter ownership of any operator class anyway.)
27
28 Parameters
29
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
46 Compatibility
47
48    There is no ALTER OPERATOR CLASS statement in the SQL standard.
49
50 See Also
51
52    CREATE OPERATOR CLASS, DROP OPERATOR CLASS, ALTER OPERATOR FAMILY