49.51. pg_ts_dict

В каталоге pg_ts_dict содержатся записи, определяющие словари текстового поиска. Словарь зависит от шаблона текстового поиска, в котором задаются все требуемые функции реализации; сам словарь предоставляет значения для настраиваемых параметров, поддерживаемых шаблонов. Такое разделение позволяет создавать словари непривилегированным пользователям. Параметры задаются текстовой строкой dictinitoption, их формат и значение зависят от шаблона.

Возможности текстового поиска PostgreSQL углублённо рассматриваются в Главе 12.

Таблица 49.51. Столбцы pg_ts_dict

ИмяТипСсылкиОписание
oidoid Идентификатор строки (скрытый атрибут; должен выбираться явно)
dictnamename Имя словаря текстового поиска
dictnamespaceoidpg_namespace.oidOID пространства имён, содержащего этот словарь
dictowneroidpg_authid.oidВладелец словаря
dicttemplateoidpg_ts_template.oidOID шаблона текстового поиска для этого словаря
dictinitoptiontext Строка с параметрами инициализации для шаблона

49.51. pg_ts_dict

The pg_ts_dict catalog contains entries defining text search dictionaries. A dictionary depends on a text search template, which specifies all the implementation functions needed; the dictionary itself provides values for the user-settable parameters supported by the template. This division of labor allows dictionaries to be created by unprivileged users. The parameters are specified by a text string dictinitoption, whose format and meaning vary depending on the template.

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

Table 49.51. pg_ts_dict Columns

NameTypeReferencesDescription
oidoid Row identifier (hidden attribute; must be explicitly selected)
dictnamename Text search dictionary name
dictnamespaceoidpg_namespace.oid The OID of the namespace that contains this dictionary
dictowneroidpg_authid.oidOwner of the dictionary
dicttemplateoidpg_ts_template.oidThe OID of the text search template for this dictionary
dictinitoptiontext Initialization option string for the template