Skip to content

foreign_tables

The foreign_tables view contains all foreign tables defined in the current database. WarehousePG displays only those foreign tables to which the current user has access (by way of being the owner or having some privilege).

columntypereferencesdescription
foreign_table_catalogsql_identifierName of the database in which the foreign table is defined (always the current database).
foreign_table_schemasql_identifierName of the schema that contains the foreign table.
foreign_table_namesql_identifierName of the foreign table.
foreign_server_catalogsql_identifierName of the database in which the foreign server is defined (always the current database).
foreign_server_namesql_identifierName of the foreign server.

Parent topic: System Catalogs Definitions