]> begriffs open source - ai-pg/blob - full-docs/man7/DROP_OPERATOR_FAMILY.7
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / man7 / DROP_OPERATOR_FAMILY.7
1 '\" t
2 .\"     Title: DROP OPERATOR FAMILY
3 .\"    Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\"      Date: 2025
6 .\"    Manual: PostgreSQL 18.0 Documentation
7 .\"    Source: PostgreSQL 18.0
8 .\"  Language: English
9 .\"
10 .TH "DROP OPERATOR FAMILY" "7" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 DROP_OPERATOR_FAMILY \- remove an operator family
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 DROP OPERATOR FAMILY [ IF EXISTS ] \fIname\fR USING \fIindex_method\fR [ CASCADE | RESTRICT ]
36 .fi
37 .SH "DESCRIPTION"
38 .PP
39 \fBDROP OPERATOR FAMILY\fR
40 drops an existing operator family\&. To execute this command you must be the owner of the operator family\&.
41 .PP
42 \fBDROP OPERATOR FAMILY\fR
43 includes dropping any operator classes contained in the family, but it does not drop any of the operators or functions referenced by the family\&. If there are any indexes depending on operator classes within the family, you will need to specify
44 CASCADE
45 for the drop to complete\&.
46 .SH "PARAMETERS"
47 .PP
48 IF EXISTS
49 .RS 4
50 Do not throw an error if the operator family does not exist\&. A notice is issued in this case\&.
51 .RE
52 .PP
53 \fIname\fR
54 .RS 4
55 The name (optionally schema\-qualified) of an existing operator family\&.
56 .RE
57 .PP
58 \fIindex_method\fR
59 .RS 4
60 The name of the index access method the operator family is for\&.
61 .RE
62 .PP
63 CASCADE
64 .RS 4
65 Automatically drop objects that depend on the operator family, and in turn all objects that depend on those objects (see
66 Section\ \&5.15)\&.
67 .RE
68 .PP
69 RESTRICT
70 .RS 4
71 Refuse to drop the operator family if any objects depend on it\&. This is the default\&.
72 .RE
73 .SH "EXAMPLES"
74 .PP
75 Remove the B\-tree operator family
76 float_ops:
77 .sp
78 .if n \{\
79 .RS 4
80 .\}
81 .nf
82 DROP OPERATOR FAMILY float_ops USING btree;
83 .fi
84 .if n \{\
85 .RE
86 .\}
87 .sp
88 This command will not succeed if there are any existing indexes that use operator classes within the family\&. Add
89 CASCADE
90 to drop such indexes along with the operator family\&.
91 .SH "COMPATIBILITY"
92 .PP
93 There is no
94 \fBDROP OPERATOR FAMILY\fR
95 statement in the SQL standard\&.
96 .SH "SEE ALSO"
97 ALTER OPERATOR FAMILY (\fBALTER_OPERATOR_FAMILY\fR(7)), CREATE OPERATOR FAMILY (\fBCREATE_OPERATOR_FAMILY\fR(7)), ALTER OPERATOR CLASS (\fBALTER_OPERATOR_CLASS\fR(7)), CREATE OPERATOR CLASS (\fBCREATE_OPERATOR_CLASS\fR(7)), DROP OPERATOR CLASS (\fBDROP_OPERATOR_CLASS\fR(7))