postgresql_16:7.1.149.3 Examples
PostgreSQL 16 > Reference > SQL Commands > IMPORT FOREIGN SCHEMA > Examples
Import table definitions from a remote schema foreign_films on server film_server, creating the foreign tables in local schema films: IMPORT FOREIGN SCHEMA foreign_films FROM SERVER film_server INTO films;
As above, but import only the two tables actors and directors (if they exist): IMPORT FOREIGN SCHEMA foreign_films LIMIT TO (actors, directors) FROM SERVER film_server INTO films;