1
1
<!--
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 $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -20,7 +20,7 @@ PostgreSQL documentation
20
20
21
21
<refsynopsisdiv>
22
22
<synopsis>
23
- DROP TYPE <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ]
23
+ DROP TYPE[ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ]
24
24
</synopsis>
25
25
</refsynopsisdiv>
26
26
@@ -37,6 +37,16 @@ DROP TYPE <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE |
37
37
<title>Parameters</title>
38
38
39
39
<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
+
40
50
<varlistentry>
41
51
<term><replaceable class="PARAMETER">name</replaceable></term>
42
52
<listitem>
@@ -84,7 +94,9 @@ DROP TYPE box;
84
94
85
95
<para>
86
96
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
88
100
and the data type extension mechanisms in
89
101
<productname>PostgreSQL</productname> differ from the SQL standard.
90
102
</para>