3 PostgreSQL documentation
6 <refentry id=
"SQL-ALTEROPCLASS">
8 <refentrytitle id=
"SQL-ALTEROPCLASS-TITLE">ALTER OPERATOR CLASS
</refentrytitle>
9 <manvolnum>7</manvolnum>
10 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
14 <refname>ALTER OPERATOR CLASS
</refname>
15 <refpurpose>change the definition of an operator class
</refpurpose>
18 <indexterm zone=
"sql-alteropclass">
19 <primary>ALTER OPERATOR CLASS
</primary>
24 ALTER OPERATOR CLASS
<replaceable>name
</replaceable> USING
<replaceable class=
"parameter">index_method
</replaceable> RENAME TO
<replaceable>newname
</replaceable>
25 ALTER OPERATOR CLASS
<replaceable>name
</replaceable> USING
<replaceable class=
"parameter">index_method
</replaceable> OWNER TO
<replaceable>newowner
</replaceable>
30 <title>Description
</title>
33 <command>ALTER OPERATOR CLASS
</command> changes the definition of
38 You must own the operator class to use
<command>ALTER OPERATOR CLASS<
/>.
39 To alter the owner, you must also be a direct or indirect member of the new
40 owning role, and that role must have
<literal>CREATE
</literal> privilege on
41 the operator class's schema. (These restrictions enforce that altering the
42 owner doesn't do anything you couldn't do by dropping and recreating the
43 operator class. However, a superuser can alter ownership of any operator
49 <title>Parameters
</title>
53 <term><replaceable class=
"parameter">name
</replaceable></term>
56 The name (optionally schema-qualified) of an existing operator
63 <term><replaceable class=
"parameter">index_method
</replaceable></term>
66 The name of the index method this operator class is for.
72 <term><replaceable class=
"parameter">newname
</replaceable></term>
75 The new name of the operator class.
81 <term><replaceable class=
"parameter">newowner
</replaceable></term>
84 The new owner of the operator class.
92 <title>Compatibility
</title>
95 There is no
<command>ALTER OPERATOR CLASS
</command> statement in
101 <title>See Also
</title>
103 <simplelist type=
"inline">
104 <member><xref linkend=
"sql-createopclass" endterm=
"sql-createopclass-title"></member>
105 <member><xref linkend=
"sql-dropopclass" endterm=
"sql-dropopclass-title"></member>
106 <member><xref linkend=
"sql-alteropfamily" endterm=
"sql-alteropfamily-title"></member>