2 doc/src/sgml/ref/drop_server.sgml
3 PostgreSQL documentation
6 <refentry id="SQL-DROPSERVER">
8 <refentrytitle>DROP SERVER</refentrytitle>
9 <manvolnum>7</manvolnum>
10 <refmiscinfo>SQL - Language Statements</refmiscinfo>
14 <refname>DROP SERVER</refname>
15 <refpurpose>remove a foreign server descriptor</refpurpose>
18 <indexterm zone="sql-dropserver">
19 <primary>DROP SERVER</primary>
24 DROP SERVER [ IF EXISTS ] <replaceable class="parameter">server_name</replaceable> [ CASCADE | RESTRICT ]
29 <title>Description</title>
32 <command>DROP SERVER</command> removes an existing foreign server
33 descriptor. To execute this command, the current user must be the
39 <title>Parameters</title>
43 <term><literal>IF EXISTS</literal></term>
46 Do not throw an error if the server does not exist. A notice is
53 <term><replaceable class="parameter">server_name</replaceable></term>
56 The name of an existing server.
62 <term><literal>CASCADE</literal></term>
65 Automatically drop objects that depend on the server (such as
72 <term><literal>RESTRICT</literal></term>
75 Refuse to drop the server if any objects depend on it. This is
84 <title>Examples</title>
87 Drop a server <literal>foo</> if it exists:
89 DROP SERVER IF EXISTS foo;
90 </programlisting></para>
94 <title>Compatibility</title>
97 <command>DROP SERVER</command> conforms to ISO/IEC 9075-9
98 (SQL/MED). The <literal>IF EXISTS</> clause is
99 a <productname>PostgreSQL</> extension.
104 <title>See Also</title>
106 <simplelist type="inline">
107 <member><xref linkend="sql-createserver"></member>
108 <member><xref linkend="sql-alterserver"></member>