Add more explicit note that the parameters of MOVE are identical to FETCH.
[PostgreSQL.git] / doc / src / sgml / ref / drop_foreign_data_wrapper.sgml
blob3cb393c07da23ebb3df74bc233dd272aa6948043
1 <!--
2 $PostgreSQL$
3 PostgreSQL documentation
4 -->
6 <refentry id="SQL-DROPFOREIGNDATAWRAPPER">
7 <refmeta>
8 <refentrytitle id="sql-dropforeigndatawrapper-title">DROP FOREIGN DATA WRAPPER</refentrytitle>
9 <manvolnum>7</manvolnum>
10 <refmiscinfo>SQL - Language Statements</refmiscinfo>
11 </refmeta>
13 <refnamediv>
14 <refname>DROP FOREIGN DATA WRAPPER</refname>
15 <refpurpose>remove a foreign-data wrapper</refpurpose>
16 </refnamediv>
18 <indexterm zone="sql-dropforeigndatawrapper">
19 <primary>DROP FOREIGN DATA WRAPPER</primary>
20 </indexterm>
22 <refsynopsisdiv>
23 <synopsis>
24 DROP FOREIGN DATA WRAPPER [ IF EXISTS ] <replaceable class="parameter">name</replaceable> [ CASCADE | RESTRICT ]
25 </synopsis>
26 </refsynopsisdiv>
28 <refsect1>
29 <title>Description</title>
31 <para>
32 <command>DROP FOREIGN DATA WRAPPER</command> removes an existing
33 foreign-data wrapper. To execute this command, the current user
34 must be the owner of the foreign-data wrapper.
35 </para>
36 </refsect1>
38 <refsect1>
39 <title>Parameters</title>
41 <variablelist>
42 <varlistentry>
43 <term><literal>IF EXISTS</literal></term>
44 <listitem>
45 <para>
46 Do not throw an error if the foreign-data wrapper does not
47 exist. A notice is issued in this case.
48 </para>
49 </listitem>
50 </varlistentry>
52 <varlistentry>
53 <term><replaceable class="parameter">name</replaceable></term>
54 <listitem>
55 <para>
56 The name of an existing foreign-data wrapper.
57 </para>
58 </listitem>
59 </varlistentry>
61 <varlistentry>
62 <term><literal>CASCADE</literal></term>
63 <listitem>
64 <para>
65 Automatically drop objects that depend on the foreign-data
66 wrapper (such as servers).
67 </para>
68 </listitem>
69 </varlistentry>
71 <varlistentry>
72 <term><literal>RESTRICT</literal></term>
73 <listitem>
74 <para>
75 Refuse to drop the foreign-data wrappers if any objects depend
76 on it. This is the default.
77 </para>
78 </listitem>
79 </varlistentry>
80 </variablelist>
81 </refsect1>
83 <refsect1>
84 <title>Examples</title>
86 <para>
87 Drop the foreign-data wrapper <literal>dbi</>:
88 <programlisting>
89 DROP FOREIGN DATA WRAPPER dbi;
90 </programlisting>
91 </para>
92 </refsect1>
94 <refsect1>
95 <title>Compatibility</title>
97 <para>
98 <command>DROP FOREIGN DATA WRAPPER</command> conforms to ISO/IEC
99 9075-9 (SQL/MED). The <literal>IF EXISTS</> clause is
100 a <productname>PostgreSQL</> extension.
101 </para>
102 </refsect1>
104 <refsect1>
105 <title>See Also</title>
107 <simplelist type="inline">
108 <member><xref linkend="sql-createforeigndatawrapper" endterm="sql-createforeigndatawrapper-title"></member>
109 <member><xref linkend="sql-alterforeigndatawrapper" endterm="sql-alterforeigndatawrapper-title"></member>
110 </simplelist>
111 </refsect1>
113 </refentry>