1DROP FOREIGN TABLE(7) PostgreSQL 9.2.24 Documentation DROP FOREIGN TABLE(7)
2
3
4
6 DROP_FOREIGN_TABLE - remove a foreign table
7
9 DROP FOREIGN TABLE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
10
12 DROP FOREIGN TABLE removes a foreign table. Only the owner of a foreign
13 table can remove it.
14
16 IF EXISTS
17 Do not throw an error if the foreign table does not exist. A notice
18 is issued in this case.
19
20 name
21 The name (optionally schema-qualified) of the foreign table to
22 drop.
23
24 CASCADE
25 Automatically drop objects that depend on the foreign table (such
26 as views).
27
28 RESTRICT
29 Refuse to drop the foreign table if any objects depend on it. This
30 is the default.
31
33 To destroy two foreign tables, films and distributors:
34
35 DROP FOREIGN TABLE films, distributors;
36
38 This command conforms to the ISO/IEC 9075-9 (SQL/MED), except that the
39 standard only allows one foreign table to be dropped per command, and
40 apart from the IF EXISTS option, which is a PostgreSQL extension.
41
43 ALTER FOREIGN TABLE (ALTER_FOREIGN_TABLE(7)), CREATE FOREIGN TABLE
44 (CREATE_FOREIGN_TABLE(7))
45
46
47
48PostgreSQL 9.2.24 2017-11-06 DROP FOREIGN TABLE(7)