doc-exports/docs/dws/dev/dws_04_0592.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-01-19 13:37:49 +00:00

8.1 KiB

PG_FOREIGN_SERVER

PG_FOREIGN_SERVER records the 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 1 PG_FOREIGN_SERVER columns

Name

Type

Reference

Description

oid

oid

-

Row identifier (hidden attribute; must be explicitly selected)

srvname

name

-

Name of the foreign server

srvowner

oid

PG_AUTHID.oid

Owner of the foreign server

srvfdw

oid

PG_FOREIGN_DATA_WRAPPER.oid

OID of the foreign-data wrapper of this foreign server

srvtype

text

-

Type of the server (optional)

srvversion

text

-

Version of the server (optional)

srvacl

aclitem[]

-

Access permissions

srvoptions

text[]

-

Option used for foreign servers. It is a keyword=value string.