@@ -695,7 +695,7 @@ ____________________________________________________________________________-->
695
695
</tbody>
696
696
</tgroup>
697
697
</table>
698
-
698
+
699
699
<!--==========================orignal english content==========================
700
700
<para>
701
701
Notice that all the operators listed above return Boolean values. In
@@ -861,15 +861,15 @@ ____________________________________________________________________________-->
861
861
<!--==========================orignal english content==========================
862
862
<row>
863
863
<entry>
864
- Defines a set of options that are specific to this operator class
864
+ Define options that are specific to this operator class
865
865
(optional)
866
866
</entry>
867
867
<entry>5</entry>
868
868
</row>
869
869
____________________________________________________________________________-->
870
870
<row>
871
871
<entry>
872
- 定义一组特定于此运算符类的选项 (可选)
872
+ 定义特定于此运算符类的选项 (可选)
873
873
</entry>
874
874
<entry>5</entry>
875
875
</row>
@@ -939,15 +939,15 @@ ____________________________________________________________________________-->
939
939
<!--==========================orignal english content==========================
940
940
<row>
941
941
<entry>
942
- Defines a set of options that are specific to this operator class
942
+ Define options that are specific to this operator class
943
943
(optional)
944
944
</entry>
945
945
<entry>3</entry>
946
946
</row>
947
947
____________________________________________________________________________-->
948
948
<row>
949
949
<entry>
950
- 定义一组特定于此运算符类的选项 (可选)
950
+ 定义特定于此运算符类的选项 (可选)
951
951
</entry>
952
952
<entry>3</entry>
953
953
</row>
@@ -957,13 +957,13 @@ ____________________________________________________________________________-->
957
957
958
958
<!--==========================orignal english content==========================
959
959
<para>
960
- GiST indexes have ten support functions, three of which are optional,
960
+ GiST indexes have eleven support functions, six of which are optional,
961
961
as shown in <xref linkend="xindex-gist-support-table"/>.
962
962
(For more information see <xref linkend="gist"/>.)
963
963
</para>
964
964
____________________________________________________________________________-->
965
965
<para>
966
- 如<xref linkend="xindex-gist-support-table"/>所示,GiST 索引有十个支持函数,其中三个是可选的 (详见<xref linkend="gist"/>)。
966
+ 如<xref linkend="xindex-gist-support-table"/>所示,GiST 索引有11个支持函数,其中6个是可选的 (详见<xref linkend="gist"/>)。
967
967
</para>
968
968
969
969
<table tocentry="1" id="xindex-gist-support-table">
@@ -1019,26 +1019,26 @@ ____________________________________________________________________________-->
1019
1019
<row>
1020
1020
<entry><function>compress</function></entry>
1021
1021
<entry>compute a compressed representation of a key or value
1022
- to be indexed</entry>
1022
+ to be indexed (optional) </entry>
1023
1023
<entry>3</entry>
1024
1024
</row>
1025
1025
____________________________________________________________________________-->
1026
1026
<row>
1027
1027
<entry><function>compress</function></entry>
1028
- <entry>计算一个要被索引的键或值的压缩表达</entry>
1028
+ <entry>计算一个要被索引的键或值的压缩表达 (可选) </entry>
1029
1029
<entry>3</entry>
1030
1030
</row>
1031
1031
<!--==========================orignal english content==========================
1032
1032
<row>
1033
1033
<entry><function>decompress</function></entry>
1034
1034
<entry>compute a decompressed representation of a
1035
- compressed key</entry>
1035
+ compressed key (optional) </entry>
1036
1036
<entry>4</entry>
1037
1037
</row>
1038
1038
____________________________________________________________________________-->
1039
1039
<row>
1040
1040
<entry><function>decompress</function></entry>
1041
- <entry>计算一个压缩键的解压表达</entry>
1041
+ <entry>计算一个压缩键的解压表达 (可选) </entry>
1042
1042
<entry>4</entry>
1043
1043
</row>
1044
1044
<!--==========================orignal english content==========================
@@ -1069,13 +1069,13 @@ ____________________________________________________________________________-->
1069
1069
</row>
1070
1070
<!--==========================orignal english content==========================
1071
1071
<row>
1072
- <entry><function>equal </function></entry>
1072
+ <entry><function>same </function></entry>
1073
1073
<entry>compare two keys and return true if they are equal</entry>
1074
1074
<entry>7</entry>
1075
1075
</row>
1076
1076
____________________________________________________________________________-->
1077
1077
<row>
1078
- <entry><function>equal </function></entry>
1078
+ <entry><function>same </function></entry>
1079
1079
<entry>比较两个键并且在它们相等时返回真</entry>
1080
1080
<entry>7</entry>
1081
1081
</row>
@@ -1107,20 +1107,31 @@ ____________________________________________________________________________-->
1107
1107
<!--==========================orignal english content==========================
1108
1108
<row>
1109
1109
<entry><function>options</function></entry>
1110
- <entry>
1111
- Defines a set of options that are specific to this operator class
1112
- (optional)
1113
- </entry>
1110
+ <entry>define options that are specific to this operator class
1111
+ (optional)</entry>
1114
1112
<entry>10</entry>
1115
1113
</row>
1116
1114
____________________________________________________________________________-->
1117
1115
<row>
1118
1116
<entry><function>options</function></entry>
1119
- <entry>
1120
- 定义一组特定于此运算符类的选项(可选)
1121
- </entry>
1117
+ <entry>定义特定于此运算符类的选项
1118
+ (可选)</entry>
1122
1119
<entry>10</entry>
1123
1120
</row>
1121
+ <!--==========================orignal english content==========================
1122
+ <row>
1123
+ <entry><function>sortsupport</function></entry>
1124
+ <entry>provide a sort comparator to be used in fast index builds
1125
+ (optional)</entry>
1126
+ <entry>11</entry>
1127
+ </row>
1128
+ ____________________________________________________________________________-->
1129
+ <row>
1130
+ <entry><function>sortsupport</function></entry>
1131
+ <entry>提供一个用于快速索引构建的排序比较器
1132
+ (可选)</entry>
1133
+ <entry>11</entry>
1134
+ </row>
1124
1135
</tbody>
1125
1136
</tgroup>
1126
1137
</table>
@@ -1225,18 +1236,15 @@ ____________________________________________________________________________-->
1225
1236
<!--==========================orignal english content==========================
1226
1237
<row>
1227
1238
<entry><function>options</function></entry>
1228
- <entry>
1229
- Defines a set of options that are specific to this operator class
1230
- (optional)
1231
- </entry>
1239
+ <entry>define options that are specific to this operator class
1240
+ (optional)</entry>
1232
1241
<entry>6</entry>
1233
1242
</row>
1234
1243
____________________________________________________________________________-->
1235
1244
<row>
1236
1245
<entry><function>options</function></entry>
1237
- <entry>
1238
- 定义一组特定于此运算符类的选项(可选)
1239
- </entry>
1246
+ <entry>定义特定于此运算符类的选项
1247
+ (可选)</entry>
1240
1248
<entry>6</entry>
1241
1249
</row>
1242
1250
</tbody>
@@ -1377,7 +1385,7 @@ ____________________________________________________________________________-->
1377
1385
<row>
1378
1386
<entry><function>options</function></entry>
1379
1387
<entry>
1380
- Defines a set of options that are specific to this operator class
1388
+ define options that are specific to this operator class
1381
1389
(optional)
1382
1390
</entry>
1383
1391
<entry>7</entry>
@@ -1386,7 +1394,7 @@ ____________________________________________________________________________-->
1386
1394
<row>
1387
1395
<entry><function>options</function></entry>
1388
1396
<entry>
1389
- 定义一组特定于此运算符类的选项 (可选)
1397
+ 定义特定于此运算符类的选项 (可选)
1390
1398
</entry>
1391
1399
<entry>7</entry>
1392
1400
</row>
@@ -1492,7 +1500,7 @@ ____________________________________________________________________________-->
1492
1500
<row>
1493
1501
<entry><function>options</function></entry>
1494
1502
<entry>
1495
- Defines a set of options that are specific to this operator class
1503
+ define options that are specific to this operator class
1496
1504
(optional)
1497
1505
</entry>
1498
1506
<entry>5</entry>
@@ -1501,14 +1509,14 @@ ____________________________________________________________________________-->
1501
1509
<row>
1502
1510
<entry><function>options</function></entry>
1503
1511
<entry>
1504
- 定义一组特定于此运算符类的选项 (可选)
1512
+ 定义特定于此运算符类的选项 (可选)
1505
1513
</entry>
1506
1514
<entry>5</entry>
1507
1515
</row>
1508
1516
</tbody>
1509
1517
</tgroup>
1510
1518
</table>
1511
-
1519
+
1512
1520
<!--==========================orignal english content==========================
1513
1521
<para>
1514
1522
Unlike search operators, support functions return whichever data
@@ -2201,7 +2209,7 @@ ____________________________________________________________________________-->
2201
2209
<para>
2202
2210
GiST、SP-GiST 和 GIN 索引没有任何明显的跨数据类型操作的概念。它们所支持的操作符集合就是一个给定操作符类能够处理的主要支持函数。
2203
2211
</para>
2204
-
2212
+
2205
2213
<!--==========================orignal english content==========================
2206
2214
<para>
2207
2215
In BRIN, the requirements depends on the framework that provides the
@@ -2563,11 +2571,15 @@ CREATE OPERATOR CLASS polygon_ops
2563
2571
STORAGE box;
2564
2572
</programlisting>
2565
2573
2566
- At present, only the GiST, GIN and BRIN index methods support a
2574
+ At present, only the GiST, SP-GiST, GIN and BRIN index methods support a
2567
2575
<literal>STORAGE</literal> type that's different from the column data type.
2568
2576
The GiST <function>compress</function> and <function>decompress</function> support
2569
2577
routines must deal with data-type conversion when <literal>STORAGE</literal>
2570
- is used. In GIN, the <literal>STORAGE</literal> type identifies the type of
2578
+ is used. SP-GiST likewise requires a <function>compress</function>
2579
+ support function to convert to the storage type, when that is different;
2580
+ if an SP-GiST opclass also supports retrieving data, the reverse
2581
+ conversion must be handled by the <function>consistent</function> function.
2582
+ In GIN, the <literal>STORAGE</literal> type identifies the type of
2571
2583
the <quote>key</quote> values, which normally is different from the type
2572
2584
of the indexed column — for example, an operator class for
2573
2585
integer-array columns might have keys that are just integers. The
@@ -2589,7 +2601,7 @@ CREATE OPERATOR CLASS polygon_ops
2589
2601
STORAGE box;
2590
2602
</programlisting>
2591
2603
2592
- 当前,只有 GiST、GIN 和 BRIN 索引方法支持不同于列数据类型的<literal>STORAGE</literal>类型。在使用<literal>STORAGE</literal>时,GiST 的支持例程<function>compress</function>和<function>decompress</function>必须处理数据类型转换。在 GIN 中,<literal>STORAGE</literal>类型标识<quote>key</quote>值的类型,它通常不同于被索引列的类型 — 例如,一个用于整数数组列的操作符类可能具有整数键值。GIN 的支持例程<function>extractValue</function>和<function>extractQuery</function>负责从被索引值中抽取键。BRIN 类似于 GIN:<literal>STORAGE</literal>类型标识被存储的摘要值的类型,而操作符类的支持过程负责正确解释摘要值。
2604
+ 当前,只有 GiST、SP-GiST、 GIN 和 BRIN 索引方法支持不同于列数据类型的<literal>STORAGE</literal>类型。在使用<literal>STORAGE</literal>时,GiST 的支持例程<function>compress</function>和<function>decompress</function>必须处理数据类型转换。SP-GiST 同样需要 <function>compress</function> 支持函数来转换为存储类型(当存储类型不同时); 如果 SP-GiST opclass 也支持检索数据,则反向转换必须由 <function>consistant</function> 函数处理 。在 GIN 中,<literal>STORAGE</literal>类型标识<quote>key</quote>值的类型,它通常不同于被索引列的类型 — 例如,一个用于整数数组列的操作符类可能具有整数键值。GIN 的支持例程<function>extractValue</function>和<function>extractQuery</function>负责从被索引值中抽取键。BRIN 类似于 GIN:<literal>STORAGE</literal>类型标识被存储的摘要值的类型,而操作符类的支持过程负责正确解释摘要值。
2593
2605
</para>
2594
2606
</sect2>
2595
2607
0 commit comments