47.24. pg_foreign_server

This catalog exists in each coordinator and datanode in Postgres-XC as inheritted from PostgreSQL. Please note that current release of Postgres-XC does not support foreign data wrapper.

Note: The following description applies both to Postgres-XC and PostgreSQL if not described explicitly. You can read PostgreSQL as Postgres-XC except for version number, which is specific to each product.

The catalog pg_foreign_server stores foreign server definitions. A foreign server describes a source of external data, such as a remote server. Foreign servers are accessed via foreign-data wrappers.

Table 47-24. pg_foreign_server Columns

NameTypeReferencesDescription
oidoid Row identifier (hidden attribute; must be explicitly selected)
srvnamename Name of the foreign server
srvowneroidpg_authid.oidOwner of the foreign server
srvfdwoidpg_foreign_data_wrapper.oidOID of the foreign-data wrapper of this foreign server
srvtypetext Type of the server (optional)
srvversiontext Version of the server (optional)
srvaclaclitem[]  Access privileges; see GRANT and REVOKE for details
srvoptionstext[]  Foreign server specific options, as "keyword=value" strings