1DROP OPERATOR FAMILY(7)  PostgreSQL 12.2 Documentation DROP OPERATOR FAMILY(7)
2
3
4

NAME

6       DROP_OPERATOR_FAMILY - remove an operator family
7

SYNOPSIS

9       DROP OPERATOR FAMILY [ IF EXISTS ] name USING index_method [ CASCADE | RESTRICT ]
10

DESCRIPTION

12       DROP OPERATOR FAMILY drops an existing operator family. To execute this
13       command you must be the owner of the operator family.
14
15       DROP OPERATOR FAMILY includes dropping any operator classes contained
16       in the family, but it does not drop any of the operators or functions
17       referenced by the family. If there are any indexes depending on
18       operator classes within the family, you will need to specify CASCADE
19       for the drop to complete.
20

PARAMETERS

22       IF EXISTS
23           Do not throw an error if the operator family does not exist. A
24           notice is issued in this case.
25
26       name
27           The name (optionally schema-qualified) of an existing operator
28           family.
29
30       index_method
31           The name of the index access method the operator family is for.
32
33       CASCADE
34           Automatically drop objects that depend on the operator family, and
35           in turn all objects that depend on those objects (see
36           Section 5.14).
37
38       RESTRICT
39           Refuse to drop the operator family if any objects depend on it.
40           This is the default.
41

EXAMPLES

43       Remove the B-tree operator family float_ops:
44
45           DROP OPERATOR FAMILY float_ops USING btree;
46
47       This command will not succeed if there are any existing indexes that
48       use operator classes within the family. Add CASCADE to drop such
49       indexes along with the operator family.
50

COMPATIBILITY

52       There is no DROP OPERATOR FAMILY statement in the SQL standard.
53

SEE ALSO

55       ALTER OPERATOR FAMILY (ALTER_OPERATOR_FAMILY(7)), CREATE OPERATOR
56       FAMILY (CREATE_OPERATOR_FAMILY(7)), ALTER OPERATOR CLASS
57       (ALTER_OPERATOR_CLASS(7)), CREATE OPERATOR CLASS
58       (CREATE_OPERATOR_CLASS(7)), DROP OPERATOR CLASS
59       (DROP_OPERATOR_CLASS(7))
60
61
62
63PostgreSQL 12.2                      2020              DROP OPERATOR FAMILY(7)
Impressum