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_table.sgml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'doc/src/sgml/ref/drop_table.sgml') diff --git a/doc/src/sgml/ref/drop_table.sgml b/doc/src/sgml/ref/drop_table.sgml index 40cc8167ef..8e7cedd71d 100644 --- a/doc/src/sgml/ref/drop_table.sgml +++ b/doc/src/sgml/ref/drop_table.sgml @@ -1,5 +1,5 @@ @@ -20,7 +20,7 @@ PostgreSQL documentation -DROP TABLE name [, ...] [ CASCADE | RESTRICT ] +DROP TABLE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ] @@ -48,6 +48,16 @@ DROP TABLE name [, ...] [ CASCADE | Parameters + + IF EXISTS + + + Do not throw an error if the table does not exist. A notice is issued + in this case. + + + + name @@ -97,7 +107,9 @@ DROP TABLE films, distributors; This command conforms to the SQL standard, except that the standard only - allows one table to be dropped per command. + allows one table to be dropped per command, and apart from the + IF EXISTS option, which is a PostgreSQL + extension. -- cgit v1.2.1