45.20. pg_foreign_server

The catalog pg_foreign_server stores foreign server definitions. A foreign server describes the connection to a remote server, managing external data. Foreign servers are accessed via foreign-data wrappers.

Table 45-20. pg_foreign_server Columns

NameTypeReferencesDescription
srvnamename Name of the foreign server
srvowneroidpg_authid.oidOwner of the foreign server
srvfdwoidpg_foreign_data_wrapper.oidThe OID 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