]> begriffs open source - ai-pg/blob - full-docs/txt/sql-dropopfamily.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-dropopfamily.txt
1
2 DROP OPERATOR FAMILY
3
4    DROP OPERATOR FAMILY — remove an operator family
5
6 Synopsis
7
8 DROP OPERATOR FAMILY [ IF EXISTS ] name USING index_method [ CASCADE | RESTRICT
9 ]
10
11 Description
12
13    DROP OPERATOR FAMILY drops an existing operator family. To execute this
14    command you must be the owner of the operator family.
15
16    DROP OPERATOR FAMILY includes dropping any operator classes contained
17    in the family, but it does not drop any of the operators or functions
18    referenced by the family. If there are any indexes depending on
19    operator classes within the family, you will need to specify CASCADE
20    for the drop to complete.
21
22 Parameters
23
24    IF EXISTS
25           Do not throw an error if the operator family does not exist. A
26           notice is issued in this case.
27
28    name
29           The name (optionally schema-qualified) of an existing operator
30           family.
31
32    index_method
33           The name of the index access method the operator family is for.
34
35    CASCADE
36           Automatically drop objects that depend on the operator family,
37           and in turn all objects that depend on those objects (see
38           Section 5.15).
39
40    RESTRICT
41           Refuse to drop the operator family if any objects depend on it.
42           This is the default.
43
44 Examples
45
46    Remove the B-tree operator family float_ops:
47 DROP OPERATOR FAMILY float_ops USING btree;
48
49    This command will not succeed if there are any existing indexes that
50    use operator classes within the family. Add CASCADE to drop such
51    indexes along with the operator family.
52
53 Compatibility
54
55    There is no DROP OPERATOR FAMILY statement in the SQL standard.
56
57 See Also
58
59    ALTER OPERATOR FAMILY, CREATE OPERATOR FAMILY, ALTER OPERATOR CLASS,
60    CREATE OPERATOR CLASS, DROP OPERATOR CLASS