3 PostgreSQL documentation
6 <refentry id=
"SQL-DROPSERVER">
8 <refentrytitle id=
"sql-dropserver-title">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">servername
</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">servername
</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;
95 <title>Compatibility
</title>
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.
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>