aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2005-11-22 15:24:18 +0000
committerAndrew Dunstan <andrew@dunslane.net>2005-11-22 15:24:18 +0000
commit5b352d8e127b695ab6facf92dbd6af47038d54e3 (patch)
tree6f77ff5d5d007bbd2677a33375603bbb283f9de8 /doc/src
parent179211a68308d051d6ae70046b4cd5ec635e1bc7 (diff)
downloadpostgresql-5b352d8e127b695ab6facf92dbd6af47038d54e3.tar.gz
postgresql-5b352d8e127b695ab6facf92dbd6af47038d54e3.zip
DROP DATABASE IF EXISTS variant
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/drop_database.sgml14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/drop_database.sgml b/doc/src/sgml/ref/drop_database.sgml
index 6a51ec356f9..ee63c11815a 100644
--- a/doc/src/sgml/ref/drop_database.sgml
+++ b/doc/src/sgml/ref/drop_database.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/drop_database.sgml,v 1.20 2005/06/21 04:02:31 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/drop_database.sgml,v 1.21 2005/11/22 15:24:17 adunstan Exp $
PostgreSQL documentation
-->
@@ -20,7 +20,7 @@ PostgreSQL documentation
<refsynopsisdiv>
<synopsis>
-DROP DATABASE <replaceable class="PARAMETER">name</replaceable>
+DROP DATABASE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable>
</synopsis>
</refsynopsisdiv>
@@ -46,6 +46,16 @@ DROP DATABASE <replaceable class="PARAMETER">name</replaceable>
<variablelist>
<varlistentry>
+ <term><literal>IF EXISTS</literal></term>
+ <listitem>
+ <para>
+ Do not throw an error if the database does not exist. A notice is issued
+ in this case.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><replaceable class="PARAMETER">name</replaceable></term>
<listitem>
<para>