.. _postgresql_pg_ts_dict:

pg_ts_dict
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

pg_ts_dict视图包含定义文本搜索字典的项。一个字典依赖于一个文本搜索模板，它指定了所有需要的函数实现，字典本身则为模板支持的用户可设置参数提供值。这种分工允许无权限的用户创建字典。参数由一个文本串dictinitoption定义，其格式和意义随着模板而变化。

.. table:: pg_ts_dict 列
      :widths: 3, 2, 4
      :class: longtable
      
      +----------------+------+---------------------------+
      | 名称           | 类型 | 描述                      |
      +================+======+===========================+
      | oid            | oid  | 行标识符                  |
      +----------------+------+---------------------------+
      | dictname       | name | 文本搜索字典名            |
      +----------------+------+---------------------------+
      | dictnamespace  | oid  | 包含该字典的名字空间OID   |
      +----------------+------+---------------------------+
      | dictowner      | oid  | 字典的拥有者              |
      +----------------+------+---------------------------+
      | dicttemplate   | oid  | 该字典的文本搜索模板的OID |
      +----------------+------+---------------------------+
      | dictinitoption | text | 模板的初始化选项串        |
      +----------------+------+---------------------------+
