11<!--
2- $PostgreSQL: pgsql/doc/src/sgml/ref/drop_type.sgml,v 1.26 2004/06/25 21:55:50 tgl Exp $
2+ $PostgreSQL: pgsql/doc/src/sgml/ref/drop_type.sgml,v 1.27 2005/11/19 17:39:44 adunstan Exp $
33PostgreSQL documentation
44-->
55
@@ -20,7 +20,7 @@ PostgreSQL documentation
2020
2121 <refsynopsisdiv>
2222<synopsis>
23- DROP TYPE <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ]
23+ DROP TYPE[ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ]
2424</synopsis>
2525 </refsynopsisdiv>
2626
@@ -37,6 +37,16 @@ DROP TYPE <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE |
3737 <title>Parameters</title>
3838
3939 <variablelist>
40+ <varlistentry>
41+ <term><literal>IF EXISTS</literal></term>
42+ <listitem>
43+ <para>
44+ Do not throw an error if the type does not exist. A notice is issued
45+ in this case.
46+ </para>
47+ </listitem>
48+ </varlistentry>
49+
4050 <varlistentry>
4151 <term><replaceable class="PARAMETER">name</replaceable></term>
4252 <listitem>
@@ -84,7 +94,9 @@ DROP TYPE box;
8494
8595 <para>
8696 This command is similar to the corresponding command in the SQL
87- standard, but note that the <command>CREATE TYPE</command> command
97+ standard, aapart from the <literal>IF EXISTS</>
98+ option, which is a <productname>PostgreSQL</> extension.
99+ But note that the <command>CREATE TYPE</command> command
88100 and the data type extension mechanisms in
89101 <productname>PostgreSQL</productname> differ from the SQL standard.
90102 </para>