2
.\" Title: DROP OPERATOR CLASS
3
.\" Author: The PostgreSQL Global Development Group
4
.\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
6
.\" Manual: PostgreSQL 9.1beta1 Documentation
7
.\" Source: PostgreSQL 9.1beta1
10
.TH "DROP OPERATOR CLASS" "7" "2011-04-27" "PostgreSQL 9.1beta1" "PostgreSQL 9.1beta1 Documentation"
11
.\" -----------------------------------------------------------------
12
.\" * set default formatting
13
.\" -----------------------------------------------------------------
14
.\" disable hyphenation
16
.\" disable justification (adjust text to left margin only)
18
.\" -----------------------------------------------------------------
19
.\" * MAIN CONTENT STARTS HERE *
20
.\" -----------------------------------------------------------------
22
DROP_OPERATOR_CLASS \- remove an operator class
23
.\" DROP OPERATOR CLASS
27
DROP OPERATOR CLASS [ IF EXISTS ] \fIname\fR USING \fIindex_method\fR [ CASCADE | RESTRICT ]
32
drops an existing operator class\&. To execute this command you must be the owner of the operator class\&.
35
does not drop any of the operators or functions referenced by the class\&. If there are any indexes depending on the operator class, you will need to specify
37
for the drop to complete\&.
42
Do not throw an error if the operator class does not exist\&. A notice is issued in this case\&.
47
The name (optionally schema\-qualified) of an existing operator class\&.
52
The name of the index access method the operator class is for\&.
57
Automatically drop objects that depend on the operator class\&.
62
Refuse to drop the operator class if any objects depend on it\&. This is the default\&.
67
will not drop the operator family containing the class, even if there is nothing else left in the family (in particular, in the case where the family was implicitly created by
68
CREATE OPERATOR CLASS)\&. An empty operator family is harmless, but for the sake of tidiness you might wish to remove the family with
69
DROP OPERATOR FAMILY; or perhaps better, use
74
Remove the B\-tree operator class
81
DROP OPERATOR CLASS widget_ops USING btree;
87
This command will not succeed if there are any existing indexes that use the operator class\&. Add
89
to drop such indexes along with the operator class\&.
94
statement in the SQL standard\&.
96
ALTER OPERATOR CLASS (\fBALTER_OPERATOR_CLASS\fR(7)), CREATE OPERATOR CLASS (\fBCREATE_OPERATOR_CLASS\fR(7)), DROP OPERATOR FAMILY (\fBDROP_OPERATOR_FAMILY\fR(7))