You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
——row1019至1021,调英为:
to hold the output of <function>to_tsvector</function>. To keep this
column automatically up to date with its source data, use a stored
generated column. This example is a
——row1050,调翻为:
另一种方法是创建一个单独的<type>tsvector</type>列来保存<function>to_tsvector</function>的输出。若要使此列与其源数据保持自动更新,用存储生成的列。这个例子是<literal>title</literal>和<literal>body</literal>的连接,使用<function>coalesce</function>来保证当其他域为<literal>NULL</literal>时一个域仍然能留在索引中:
——row1027至1029,调英为:
ALTER TABLE pgweb
ADD COLUMN textsearchable_index_col tsvector
GENERATED ALWAYS AS (to_tsvector('english', coalesce(title, '') || ' ' || coalesce(body, ''))) STORED;
——row1053至1055,调翻为:
ALTER TABLE pgweb
ADD COLUMN textsearchable_index_col tsvector
GENERATED ALWAYS AS (to_tsvector('english', coalesce(title, '') || ' ' || coalesce(body, ''))) STORED;
——row1074,删英和翻为:
<!--==========================orignal english content==========================
<para>
When using a separate column to store the <type>tsvector</type>
representation,
it is necessary to create a trigger to keep the <type>tsvector</type>
column current anytime <literal>title</literal> or <literal>body</literal> changes.
<xref linkend="textsearch-update-triggers"/> explains how to do that.
</para>
____________________________________________________________________________-->
<para>
在使用一个单独的列来存储<type>tsvector</type>表示时,有必要创建一个触发器在<literal>title</literal>或<literal>body</literal>改变时保证<type>tsvector</type>列为当前值。<xref linkend="textsearch-update-triggers"/>解释了怎样去做。
</para>
——row3151至3162,增英和翻为:
<note>
<!--==========================orignal english content==========================
<para>
The method described in this section has been obsoleted by the use of
stored generated columns, as described in <xref
linkend="textsearch-tables-index"/>.
</para>
____________________________________________________________________________-->
<para>
本节中描述的方法已被使用存储生成的列所淘汰,如 <xref linkend="textsearch-tables-index"/>中所述。
</para>
</note>
——row6497至6506,增英和翻为:
<!--==========================orignal english content==========================
<para>
A GiST index can be covering, i.e. use the <literal>INCLUDE</literal>
clause. Included columns can have data types without any GiST operator
class. Included attributes will be stored uncompressed.
</para>
____________________________________________________________________________-->
<para>
GiST 索引可以被覆盖,例如使用<literal>INCLUDE</literal>子句。 包含的列可以具有没有任何 GiST 操作符类的数据类型。 包含的属性将非压缩存储。
</para>
——row6722至6746,调英为:
List of text search dictionaries
Schema | Name | Description
-−-−-−-−-−-−+-−-−-−-−-−-−-−-−-+-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-
pg_catalog | arabic_stem | snowball stemmer for arabic language
pg_catalog | danish_stem | snowball stemmer for danish language
pg_catalog | dutch_stem | snowball stemmer for dutch language
pg_catalog | english_stem | snowball stemmer for english language
pg_catalog | finnish_stem | snowball stemmer for finnish language
pg_catalog | french_stem | snowball stemmer for french language
pg_catalog | german_stem | snowball stemmer for german language
pg_catalog | hungarian_stem | snowball stemmer for hungarian language
pg_catalog | indonesian_stem | snowball stemmer for indonesian language
pg_catalog | irish_stem | snowball stemmer for irish language
pg_catalog | italian_stem | snowball stemmer for italian language
pg_catalog | lithuanian_stem | snowball stemmer for lithuanian language
pg_catalog | nepali_stem | snowball stemmer for nepali language
pg_catalog | norwegian_stem | snowball stemmer for norwegian language
pg_catalog | portuguese_stem | snowball stemmer for portuguese language
pg_catalog | romanian_stem | snowball stemmer for romanian language
pg_catalog | russian_stem | snowball stemmer for russian language
pg_catalog | simple | simple dictionary: just lower case and check for stopword
pg_catalog | spanish_stem | snowball stemmer for spanish language
pg_catalog | swedish_stem | snowball stemmer for swedish language
pg_catalog | tamil_stem | snowball stemmer for tamil language
pg_catalog | turkish_stem | snowball stemmer for turkish language
——row6754至6778,调翻为:
List of text search dictionaries
Schema | Name | Description
-−-−-−-−-−-−+-−-−-−-−-−-−-−-−-+-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-
pg_catalog | arabic_stem | snowball stemmer for arabic language
pg_catalog | danish_stem | snowball stemmer for danish language
pg_catalog | dutch_stem | snowball stemmer for dutch language
pg_catalog | english_stem | snowball stemmer for english language
pg_catalog | finnish_stem | snowball stemmer for finnish language
pg_catalog | french_stem | snowball stemmer for french language
pg_catalog | german_stem | snowball stemmer for german language
pg_catalog | hungarian_stem | snowball stemmer for hungarian language
pg_catalog | indonesian_stem | snowball stemmer for indonesian language
pg_catalog | irish_stem | snowball stemmer for irish language
pg_catalog | italian_stem | snowball stemmer for italian language
pg_catalog | lithuanian_stem | snowball stemmer for lithuanian language
pg_catalog | nepali_stem | snowball stemmer for nepali language
pg_catalog | norwegian_stem | snowball stemmer for norwegian language
pg_catalog | portuguese_stem | snowball stemmer for portuguese language
pg_catalog | romanian_stem | snowball stemmer for romanian language
pg_catalog | russian_stem | snowball stemmer for russian language
pg_catalog | simple | simple dictionary: just lower case and check for stopword
pg_catalog | spanish_stem | snowball stemmer for spanish language
pg_catalog | swedish_stem | snowball stemmer for swedish language
pg_catalog | tamil_stem | snowball stemmer for tamil language
pg_catalog | turkish_stem | snowball stemmer for turkish language
一个 GiST 索引是<firstterm>有损的</firstterm>,这表示索引可能产生假匹配,并且有必要检查真实的表行来消除这种假匹配(<productname>PostgreSQL</productname>在需要时会自动做这一步)。GiST 索引之所以是有损的,是因为每一个文档在索引中被表示为一个定长的签名。该签名通过哈希每一个词到一个 n 位串中的一个单一位来产生,通过将所有这些位 OR 在一起产生一个 n 位的文档签名。当两个词哈希到同一个位位置时就会产生假匹配。如果查询中所有词都有匹配(真或假),则必须检索表行查看匹配是否正确。
6493
6495
</para>
6494
6496
6497
+
<!--==========================orignal english content==========================
6498
+
<para>
6499
+
A GiST index can be covering, i.e. use the <literal>INCLUDE</literal>
6500
+
clause. Included columns can have data types without any GiST operator
6501
+
class. Included attributes will be stored uncompressed.
0 commit comments