Add more explicit note that the parameters of MOVE are identical to FETCH.
[PostgreSQL.git] / doc / src / sgml / ref / drop_server.sgml
blob9b77959dc9c732bb74a07daf388cce8690b1d009
1 <!--
2 $PostgreSQL$
3 PostgreSQL documentation
4 -->
6 <refentry id="SQL-DROPSERVER">
7 <refmeta>
8 <refentrytitle id="sql-dropserver-title">DROP SERVER</refentrytitle>
9 <manvolnum>7</manvolnum>
10 <refmiscinfo>SQL - Language Statements</refmiscinfo>
11 </refmeta>
13 <refnamediv>
14 <refname>DROP SERVER</refname>
15 <refpurpose>remove a foreign server descriptor</refpurpose>
16 </refnamediv>
18 <indexterm zone="sql-dropserver">
19 <primary>DROP SERVER</primary>
20 </indexterm>
22 <refsynopsisdiv>
23 <synopsis>
24 DROP SERVER [ IF EXISTS ] <replaceable class="parameter">servername</replaceable> [ CASCADE | RESTRICT ]
25 </synopsis>
26 </refsynopsisdiv>
28 <refsect1>
29 <title>Description</title>
31 <para>
32 <command>DROP SERVER</command> removes an existing foreign server
33 descriptor. To execute this command, the current user must be the
34 owner of the server.
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 server does not exist. A notice is
47 issued in this case.
48 </para>
49 </listitem>
50 </varlistentry>
52 <varlistentry>
53 <term><replaceable class="parameter">servername</replaceable></term>
54 <listitem>
55 <para>
56 The name of an existing server.
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 server (such as
66 user mappings).
67 </para>
68 </listitem>
69 </varlistentry>
71 <varlistentry>
72 <term><literal>RESTRICT</literal></term>
73 <listitem>
74 <para>
75 Refuse to drop the server if any objects depend on it. This is
76 the default.
77 </para>
78 </listitem>
79 </varlistentry>
80 </variablelist>
81 </refsect1>
83 <refsect1>
84 <title>Examples</title>
86 <para>
87 Drop a server <literal>foo</> if it exists:
88 <programlisting>
89 DROP SERVER IF EXISTS foo;
90 </programlisting>
91 </para>
92 </refsect1>
94 <refsect1>
95 <title>Compatibility</title>
97 <para>
98 <command>DROP SERVER</command> conforms to ISO/IEC 9075-9
99 (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-createserver" endterm="sql-createserver-title"></member>
109 <member><xref linkend="sql-alterserver" endterm="sql-alterserver-title"></member>
110 </simplelist>
111 </refsect1>
113 </refentry>