]> begriffs open source - ai-pg/blob - full-docs/txt/sql-dropserver.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-dropserver.txt
1
2 DROP SERVER
3
4    DROP SERVER — remove a foreign server descriptor
5
6 Synopsis
7
8 DROP SERVER [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
9
10 Description
11
12    DROP SERVER removes an existing foreign server descriptor. To execute
13    this command, the current user must be the owner of the server.
14
15 Parameters
16
17    IF EXISTS
18           Do not throw an error if the server does not exist. A notice is
19           issued in this case.
20
21    name
22           The name of an existing server.
23
24    CASCADE
25           Automatically drop objects that depend on the server (such as
26           user mappings), and in turn all objects that depend on those
27           objects (see Section 5.15).
28
29    RESTRICT
30           Refuse to drop the server if any objects depend on it. This is
31           the default.
32
33 Examples
34
35    Drop a server foo if it exists:
36 DROP SERVER IF EXISTS foo;
37
38 Compatibility
39
40    DROP SERVER conforms to ISO/IEC 9075-9 (SQL/MED). The IF EXISTS clause
41    is a PostgreSQL extension.
42
43 See Also
44
45    CREATE SERVER, ALTER SERVER