DROP_FOREIGN_TABLE
remove a foreign table
- Provided by: postgresql-client-12 (Version: 12.22-0ubuntu0.20.04.4)
- Source: postgresql-12
- Report a bug
remove a foreign table
DROP FOREIGN TABLE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
DROP FOREIGN TABLE removes a foreign table. Only the owner of a foreign table can remove it.
IF EXISTS
name
CASCADE
RESTRICT
To destroy two foreign tables, films and distributors:
DROP FOREIGN TABLE films, distributors;
This command conforms to the ISO/IEC 9075-9 (SQL/MED), except that the standard only allows one foreign table to be dropped per command, and apart from the IF EXISTS option, which is a PostgreSQL extension.
ALTER FOREIGN TABLE (ALTER_FOREIGN_TABLE(7)), CREATE FOREIGN TABLE (CREATE_FOREIGN_TABLE(7))