~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'\" t
 
2
.\"     Title: DROP SEQUENCE
 
3
.\"    Author: The PostgreSQL Global Development Group
 
4
.\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
 
5
.\"      Date: 2011-04-27
 
6
.\"    Manual: PostgreSQL 9.1beta1 Documentation
 
7
.\"    Source: PostgreSQL 9.1beta1
 
8
.\"  Language: English
 
9
.\"
 
10
.TH "DROP SEQUENCE" "7" "2011-04-27" "PostgreSQL 9.1beta1" "PostgreSQL 9.1beta1 Documentation"
 
11
.\" -----------------------------------------------------------------
 
12
.\" * set default formatting
 
13
.\" -----------------------------------------------------------------
 
14
.\" disable hyphenation
 
15
.nh
 
16
.\" disable justification (adjust text to left margin only)
 
17
.ad l
 
18
.\" -----------------------------------------------------------------
 
19
.\" * MAIN CONTENT STARTS HERE *
 
20
.\" -----------------------------------------------------------------
 
21
.SH "NAME"
 
22
DROP_SEQUENCE \- remove a sequence
 
23
.\" DROP SEQUENCE
 
24
.SH "SYNOPSIS"
 
25
.sp
 
26
.nf
 
27
DROP SEQUENCE [ IF EXISTS ] \fIname\fR [, \&.\&.\&.] [ CASCADE | RESTRICT ]
 
28
.fi
 
29
.SH "DESCRIPTION"
 
30
.PP
 
31
DROP SEQUENCE
 
32
removes sequence number generators\&. A sequence can only be dropped by its owner or a superuser\&.
 
33
.SH "PARAMETERS"
 
34
.PP
 
35
IF EXISTS
 
36
.RS 4
 
37
Do not throw an error if the sequence does not exist\&. A notice is issued in this case\&.
 
38
.RE
 
39
.PP
 
40
\fIname\fR
 
41
.RS 4
 
42
The name (optionally schema\-qualified) of a sequence\&.
 
43
.RE
 
44
.PP
 
45
CASCADE
 
46
.RS 4
 
47
Automatically drop objects that depend on the sequence\&.
 
48
.RE
 
49
.PP
 
50
RESTRICT
 
51
.RS 4
 
52
Refuse to drop the sequence if any objects depend on it\&. This is the default\&.
 
53
.RE
 
54
.SH "EXAMPLES"
 
55
.PP
 
56
To remove the sequence
 
57
serial:
 
58
.sp
 
59
.if n \{\
 
60
.RS 4
 
61
.\}
 
62
.nf
 
63
DROP SEQUENCE serial;
 
64
.fi
 
65
.if n \{\
 
66
.RE
 
67
.\}
 
68
.SH "COMPATIBILITY"
 
69
.PP
 
70
DROP SEQUENCE
 
71
conforms to the
 
72
SQL
 
73
standard, except that the standard only allows one sequence to be dropped per command, and apart from the
 
74
IF EXISTS
 
75
option, which is a
 
76
PostgreSQL
 
77
extension\&.
 
78
.SH "SEE ALSO"
 
79
CREATE SEQUENCE (\fBCREATE_SEQUENCE\fR(7)), ALTER SEQUENCE (\fBALTER_SEQUENCE\fR(7))