From daea4d8eaee010f41e46bb98cd1b2da2f9fb75d9 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sat, 19 Nov 2005 17:39:45 +0000 Subject: DROP objecttype IF EXISTS for the following objects: table view index sequence schema type domain conversion --- doc/src/sgml/ref/drop_sequence.sgml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'doc/src/sgml/ref/drop_sequence.sgml') diff --git a/doc/src/sgml/ref/drop_sequence.sgml b/doc/src/sgml/ref/drop_sequence.sgml index 11f60b268a8..074f4e7216d 100644 --- a/doc/src/sgml/ref/drop_sequence.sgml +++ b/doc/src/sgml/ref/drop_sequence.sgml @@ -1,5 +1,5 @@ @@ -20,7 +20,7 @@ PostgreSQL documentation -DROP SEQUENCE name [, ...] [ CASCADE | RESTRICT ] +DROP SEQUENCE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ] @@ -36,6 +36,16 @@ DROP SEQUENCE name [, ...] [ CASCAD Parameters + + IF EXISTS + + + Do not throw an error if the sequence does not exist. A notice is issued + in this case. + + + + name @@ -84,7 +94,9 @@ DROP SEQUENCE serial; DROP SEQUENCE conforms to the SQL standard, except that the standard only allows one - sequence to be dropped per command. + sequence to be dropped per command, and apart from the + IF EXISTS option, which is a PostgreSQL + extension. -- cgit v1.2.3