IMPORT_FOREIGN_SCHEMA man page on Kali

Man page or keyword search:  
man Server   9211 pages
apropos Keyword Search (all sections)
Output format
Kali logo
[printable version]

IMPORT FOREIGN SCHEMA(7) PostgreSQL 10.1 DocumentationIMPORT FOREIGN SCHEMA(7)

NAME
       IMPORT_FOREIGN_SCHEMA - import table definitions from a foreign server

SYNOPSIS
       IMPORT FOREIGN SCHEMA remote_schema
	   [ { LIMIT TO | EXCEPT } ( table_name [, ...] ) ]
	   FROM SERVER server_name
	   INTO local_schema
	   [ OPTIONS ( option 'value' [, ... ] ) ]

DESCRIPTION
       IMPORT FOREIGN SCHEMA creates foreign tables that represent tables
       existing on a foreign server. The new foreign tables will be owned by
       the user issuing the command and are created with the correct column
       definitions and options to match the remote tables.

       By default, all tables and views existing in a particular schema on the
       foreign server are imported. Optionally, the list of tables can be
       limited to a specified subset, or specific tables can be excluded. The
       new foreign tables are all created in the target schema, which must
       already exist.

       To use IMPORT FOREIGN SCHEMA, the user must have USAGE privilege on the
       foreign server, as well as CREATE privilege on the target schema.

PARAMETERS
       remote_schema
	   The remote schema to import from. The specific meaning of a remote
	   schema depends on the foreign data wrapper in use.

       LIMIT TO ( table_name [, ...] )
	   Import only foreign tables matching one of the given table names.
	   Other tables existing in the foreign schema will be ignored.

       EXCEPT ( table_name [, ...] )
	   Exclude specified foreign tables from the import. All tables
	   existing in the foreign schema will be imported except the ones
	   listed here.

       server_name
	   The foreign server to import from.

       local_schema
	   The schema in which the imported foreign tables will be created.

       OPTIONS ( option 'value' [, ...] )
	   Options to be used during the import. The allowed option names and
	   values are specific to each foreign data wrapper.

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;

COMPATIBILITY
       The IMPORT FOREIGN SCHEMA command conforms to the SQL standard, except
       that the OPTIONS clause is a PostgreSQL extension.

SEE ALSO
       CREATE FOREIGN TABLE (CREATE_FOREIGN_TABLE(7)), CREATE SERVER
       (CREATE_SERVER(7))

PostgreSQL 10.1			     2017	      IMPORT FOREIGN SCHEMA(7)
[top]

List of man pages available for Kali

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net