postgresql_16:7.1.149 IMPORT FOREIGN SCHEMA
PostgreSQL 16 > Reference > SQL Commands > IMPORT FOREIGN SCHEMA
import table definitions from a foreign server
IMPORT FOREIGN SCHEMA remote_schema
[ { LIMIT TO | EXCEPT } ( table_name [, ...] ) ]
FROM SERVER server_name
INTO local_schema
[ OPTIONS ( option 'value' [, ... ] ) ]
IMPORT FOREIGN SCHEMA remote_schema
[ { LIMIT TO | EXCEPT } ( table_name [, ...] ) ]
FROM SERVER server_name
INTO local_schema
[ OPTIONS ( option 'value' [, ... ] ) ]
Subsections
- postgresql_16:7.1.149.1 Description
- postgresql_16:7.1.149.2 Parameters
- postgresql_16:7.1.149.3 Examples
- postgresql_16:7.1.149.4 Compatibility
- postgresql_16:7.1.149.5 See Also