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