## 52.24. `pg_foreign_server`

[]()

 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 52.24. `pg_foreign_server` Columns**

|                                                                  Column Type<br/><br/> Description                                                                 |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                                                `oid` `oid`<br/><br/> Row identifier                                                                |
|                                                       `srvname` `name`<br/><br/> Name of the foreign server                                                        |
|                          `srvowner` `oid` (references [`pg_authid`](catalog-pg-authid.html).`oid`)<br/><br/> Owner of the foreign server                           |
|`srvfdw` `oid` (references [`pg_foreign_data_wrapper`](catalog-pg-foreign-data-wrapper.html).`oid`)<br/><br/> OID of the foreign-data wrapper of this foreign server|
|                                                      `srvtype` `text`<br/><br/> Type of the server (optional)                                                      |
|                                                   `srvversion` `text`<br/><br/> Version of the server (optional)                                                   |
|                                   `srvacl` `aclitem[]`<br/><br/> Access privileges; see [Section 5.7](ddl-priv.html) for details                                   |
|                                    `srvoptions` `text[]`<br/><br/> Foreign server specific options, as “keyword=value” strings                                     |

