55.6. pg_attrdef

В каталоге pg_attrdef хранятся значения столбцов по умолчанию. Основная информация о столбцах хранится в pg_attribute. Данный же каталог содержит записи только для тех столбцов, для которых явно задаётся значение по умолчанию.

Таблица 55.6. Столбцы pg_attrdef

Тип столбца

Описание

oid oid

Идентификатор строки

adrelid oid (ссылается на pg_class.oid)

Таблица, к которой принадлежит столбец

adnum int2 (ссылается на pg_attribute.attnum)

Номер столбца

adbin pg_node_tree

Значение столбца по умолчанию, в формате nodeToString(). Чтобы преобразовать его в SQL-выражение, воспользуйтесь функцией pg_get_expr(adbin, adrelid).


50.50. pg_ts_config

The pg_ts_config catalog contains entries representing text search configurations. A configuration specifies a particular text search parser and a list of dictionaries to use for each of the parser's output token types. The parser is shown in the pg_ts_config entry, but the token-to-dictionary mapping is defined by subsidiary entries in pg_ts_config_map.

Postgres Pro's text search features are described at length in Chapter 12.

Table 50.50. pg_ts_config Columns

NameTypeReferencesDescription
oidoid Row identifier (hidden attribute; must be explicitly selected)
cfgnamename Text search configuration name
cfgnamespaceoidpg_namespace.oid The OID of the namespace that contains this configuration
cfgowneroidpg_authid.oidOwner of the configuration
cfgparseroidpg_ts_parser.oidThe OID of the text search parser for this configuration