1DROP OPERATOR CLASS()            SQL Commands            DROP OPERATOR CLASS()
2
3
4

NAME

6       DROP OPERATOR CLASS - remove an operator class
7
8

SYNOPSIS

10       DROP OPERATOR CLASS [ IF EXISTS ] name USING index_method [ CASCADE | RESTRICT ]
11
12

DESCRIPTION

14       DROP  OPERATOR CLASS drops an existing operator class.  To execute this
15       command you must be the owner of the operator class.
16

PARAMETERS

18       IF EXISTS
19              Do not throw an error if the operator class does  not  exist.  A
20              notice is issued in this case.
21
22       name   The  name  (optionally schema-qualified) of an existing operator
23              class.
24
25       index_method
26              The name of the index access method the operator class is for.
27
28       CASCADE
29              Automatically drop objects that depend on the operator class.
30
31       RESTRICT
32              Refuse to drop the operator class if any objects depend  on  it.
33              This is the default.
34

EXAMPLES

36       Remove the B-tree operator class widget_ops:
37
38       DROP OPERATOR CLASS widget_ops USING btree;
39
40       This  command  will  not succeed if there are any existing indexes that
41       use the operator class. Add CASCADE to drop such indexes along with the
42       operator class.
43

COMPATIBILITY

45       There is no DROP OPERATOR CLASS statement in the SQL standard.
46

SEE ALSO

48       ALTER  OPERATOR  CLASS [alter_operator_class(7)], CREATE OPERATOR CLASS
49       [create_operator_class(l)]
50
51
52
53SQL - Language Statements         2008-06-08             DROP OPERATOR CLASS()
Impressum