1DROP OPERATOR FAMILY(7) PostgreSQL 9.2.24 DocumentationDROP OPERATOR FAMILY(7)
2
3
4
6 DROP_OPERATOR_FAMILY - remove an operator family
7
9 DROP OPERATOR FAMILY [ IF EXISTS ] name USING index_method [ CASCADE | RESTRICT ]
10
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
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.
35
36 RESTRICT
37 Refuse to drop the operator family if any objects depend on it.
38 This is the default.
39
41 Remove the B-tree operator family float_ops:
42
43 DROP OPERATOR FAMILY float_ops USING btree;
44
45 This command will not succeed if there are any existing indexes that
46 use operator classes within the family. Add CASCADE to drop such
47 indexes along with the operator family.
48
50 There is no DROP OPERATOR FAMILY statement in the SQL standard.
51
53 ALTER OPERATOR FAMILY (ALTER_OPERATOR_FAMILY(7)), CREATE OPERATOR
54 FAMILY (CREATE_OPERATOR_FAMILY(7)), ALTER OPERATOR CLASS
55 (ALTER_OPERATOR_CLASS(7)), CREATE OPERATOR CLASS
56 (CREATE_OPERATOR_CLASS(7)), DROP OPERATOR CLASS
57 (DROP_OPERATOR_CLASS(7))
58
59
60
61PostgreSQL 9.2.24 2017-11-06 DROP OPERATOR FAMILY(7)