34.28. foreign_servers

Представление foreign_servers показывает все сторонние серверы, определённые в текущей базе данных. В нём показываются только те сторонние серверы, к которым имеет доступ текущий пользователь (являясь их владельцем или имея некоторые права).

Таблица 34-26. Колонки foreign_servers

ИмяТип данныхОписание
foreign_server_catalogsql_identifierИмя базы данных, в которой определён сторонний сервер (всегда текущая база)
foreign_server_namesql_identifierИмя стороннего сервера
foreign_data_wrapper_catalogsql_identifierИмя базы данных, в которой определена обёртка сторонних данных, используемая сторонним сервером (всегда текущая база)
foreign_data_wrapper_namesql_identifierИмя обёртки сторонних данных, используемой сторонним сервером
foreign_server_typecharacter_dataИнформация о типе стороннего сервера, если она была указана при его создании
foreign_server_versioncharacter_dataИнформация о версии стороннего сервера, если она была указана при его создании
authorization_identifiersql_identifierИмя владельца стороннего сервера

52.19. pg_description

The catalog pg_description stores optional descriptions (comments) for each database object. Descriptions can be manipulated with the COMMENT command and viewed with psql's \d commands. Descriptions of many built-in system objects are provided in the initial contents of pg_description.

See also pg_shdescription, which performs a similar function for descriptions involving objects that are shared across a database cluster.

Table 52.19. pg_description Columns

Column Type

Description

objoid oid (references any OID column)

The OID of the object this description pertains to

classoid oid (references pg_class.oid)

The OID of the system catalog this object appears in

objsubid int4

For a comment on a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is zero.

description text

Arbitrary text that serves as the description of this object