DROP SERVERSection: SQL Commands (7)
Index Return to Main Contents
NAMEDROP SERVER - remove a foreign server descriptor
DROP SERVER [ IF EXISTS ] servername [ CASCADE | RESTRICT ]
- IF EXISTS
- Do not throw an error if the server does not exist. A notice is issued in this case.
- The name of an existing server.
- Automatically drop objects that depend on the server (such as user mappings).
- Refuse to drop the server if any objects depend on it. This is the default.
Drop a server foo if it exists:
DROP SERVER IF EXISTS foo;
SEE ALSOCREATE SERVER [create_server(7)], ALTER SERVER [alter_server(7)]
This document was created by man2html, using the manual pages.
Time: 05:34:15 GMT, December 24, 2015