~ubuntu-branches/debian/sid/postgresql-9.3/sid

« back to all changes in this revision

Viewing changes to doc/src/sgml/man7/DROP_OPERATOR_FAMILY.7

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 05:39:52 UTC
  • Revision ID: package-import@ubuntu.com-20130508053952-1j7uilp7mjtrvq8q
Tags: upstream-9.3~beta1
ImportĀ upstreamĀ versionĀ 9.3~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'\" t
 
2
.\"     Title: DROP OPERATOR FAMILY
 
3
.\"    Author: The PostgreSQL Global Development Group
 
4
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
 
5
.\"      Date: 2013-05-06
 
6
.\"    Manual: PostgreSQL 9.3beta1 Documentation
 
7
.\"    Source: PostgreSQL 9.3beta1
 
8
.\"  Language: English
 
9
.\"
 
10
.TH "DROP OPERATOR FAMILY" "7" "2013-05-06" "PostgreSQL 9.3beta1" "PostgreSQL 9.3beta1 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
.\" DROP OPERATOR FAMILY
 
33
.SH "SYNOPSIS"
 
34
.sp
 
35
.nf
 
36
DROP OPERATOR FAMILY [ IF EXISTS ] \fIname\fR USING \fIindex_method\fR [ CASCADE | RESTRICT ]
 
37
.fi
 
38
.SH "DESCRIPTION"
 
39
.PP
 
40
 
 
41
\fBDROP OPERATOR FAMILY\fR
 
42
drops an existing operator family\&. To execute this command you must be the owner of the operator family\&.
 
43
.PP
 
44
 
 
45
\fBDROP OPERATOR FAMILY\fR
 
46
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
 
47
CASCADE
 
48
for the drop to complete\&.
 
49
.SH "PARAMETERS"
 
50
.PP
 
51
IF EXISTS
 
52
.RS 4
 
53
Do not throw an error if the operator family does not exist\&. A notice is issued in this case\&.
 
54
.RE
 
55
.PP
 
56
\fIname\fR
 
57
.RS 4
 
58
The name (optionally schema\-qualified) of an existing operator family\&.
 
59
.RE
 
60
.PP
 
61
\fIindex_method\fR
 
62
.RS 4
 
63
The name of the index access method the operator family is for\&.
 
64
.RE
 
65
.PP
 
66
CASCADE
 
67
.RS 4
 
68
Automatically drop objects that depend on the operator family\&.
 
69
.RE
 
70
.PP
 
71
RESTRICT
 
72
.RS 4
 
73
Refuse to drop the operator family if any objects depend on it\&. This is the default\&.
 
74
.RE
 
75
.SH "EXAMPLES"
 
76
.PP
 
77
Remove the B\-tree operator family
 
78
float_ops:
 
79
.sp
 
80
.if n \{\
 
81
.RS 4
 
82
.\}
 
83
.nf
 
84
DROP OPERATOR FAMILY float_ops USING btree;
 
85
.fi
 
86
.if n \{\
 
87
.RE
 
88
.\}
 
89
.sp
 
90
This command will not succeed if there are any existing indexes that use operator classes within the family\&. Add
 
91
CASCADE
 
92
to drop such indexes along with the operator family\&.
 
93
.SH "COMPATIBILITY"
 
94
.PP
 
95
There is no
 
96
\fBDROP OPERATOR FAMILY\fR
 
97
statement in the SQL standard\&.
 
98
.SH "SEE ALSO"
 
99
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))