@@ -35,10 +35,8 @@ ________________________________________________________-->
35
35
</para>
36
36
________________________________________________________-->
37
37
<para>
38
- <acronym>BRIN</acronym> stands for Block Range Index.
39
- <acronym>BRIN</acronym> is designed for handling very large tables
40
- in which certain columns have some natural correlation with their
41
- physical location within the table.
38
+ <acronym>BRIN</acronym> 代表块范围索引。
39
+ <acronym>BRIN</acronym> 旨在处理非常大的表,其中某些列与它们在表中的物理位置具有某种自然相关性。
42
40
</para>
43
41
<!-- pgdoc-cn_end sig_en=70b70b4a6c7a9120fc7bfb74340bd5a9 -->
44
42
@@ -57,16 +55,11 @@ ________________________________________________________-->
57
55
</para>
58
56
________________________________________________________-->
59
57
<para>
60
- <acronym>BRIN</acronym> works in terms of <firstterm>block ranges</firstterm>
61
- (or <quote>page ranges</quote>).
62
- A block range is a group of pages that are physically
63
- adjacent in the table; for each block range, some summary info is stored
64
- by the index.
65
- For example, a table storing a store's sale orders might have
66
- a date column on which each order was placed, and most of the time
67
- the entries for earlier orders will appear earlier in the table as well;
68
- a table storing a ZIP code column might have all codes for a city
69
- grouped together naturally.
58
+ <acronym>BRIN</acronym> 以 <firstterm>block ranges</firstterm>
59
+ (或 <quote>page ranges</quote>)为单位工作。
60
+ 块范围是表中物理上相邻的一组页面;对于每个块范围,索引会存储一些摘要信息。
61
+ 例如,一个存储商店销售订单的表可能有一个日期列,表示每个订单的下单日期,大多数情况下较早的订单条目也会在表格中较早出现;
62
+ 一个存储邮政编码列的表可能会自然地将同一城市的所有邮政编码分组在一起。
70
63
</para>
71
64
<!-- pgdoc-cn_end sig_en=e3b2c04d5d86f4054583c592f20f5a2c -->
72
65
@@ -182,10 +175,9 @@ ________________________________________________________-->
182
175
<link linkend="autovacuum">autovacuum</link>进行了清理,所有现有的未摘要的
183
176
页面范围都会被摘要。
184
177
另外,如果索引的
185
- <xref linkend="index-reloption-autosummarize"/>参数被启用,
186
- 默认情况下不启用,
187
- 每当数据库中运行autovacuum时,将对所有已填充的未摘要的页面范围进行摘要,
188
- 无论表本身是否由autovacuum处理;请参见下文。
178
+ <xref linkend="index-reloption-autosummarize"/>参数被启用(默认情况下未启用),
179
+ 那么每当数据库中运行自动清理(autovacuum)时,将对所有已填充的未摘要的页面范围进行摘要处理,
180
+ 无论表本身是否由自动清理(autovacuum)处理;请参见下文。
189
181
</para>
190
182
<!-- pgdoc-cn_end sig_en=1373ff19c58ab48118a39c4fb8eeb2db -->
191
183
@@ -210,12 +202,11 @@ ________________________________________________________-->
210
202
<simplelist>
211
203
<member>
212
204
<function>brin_summarize_new_values(regclass)</function>
213
- which summarizes all unsummarized ranges ;
205
+ 它总结了所有未总结的范围 ;
214
206
</member>
215
207
<member>
216
208
<function>brin_summarize_range(regclass, bigint)</function>
217
- which summarizes only the range containing the given page,
218
- if it is unsummarized.
209
+ 如果未汇总,则仅汇总包含给定页面的范围。
219
210
</member>
220
211
</simplelist>
221
212
</para>
@@ -241,11 +232,11 @@ LOG: request for BRIN range summarization for index "brin_wi_idx" page 128 was
241
232
________________________________________________________-->
242
233
<para>
243
234
当启用自动摘要时,会向<literal>autovacuum</literal>发送请求,以在检测到下一个块范围的第一页的第一项插入时执行有针对性的摘要,
244
- 在同一数据库中的下一个autovacuum工作完成后执行 。如果请求队列已满,则不记录请求,并向服务器日志发送消息:
235
+ 在同一数据库中的下一个自动清理(autovacuum)工作完成后执行 。如果请求队列已满,则不记录请求,并向服务器日志发送消息:
245
236
<screen>
246
237
LOG: request for BRIN range summarization for index "brin_wi_idx" page 128 was not recorded
247
238
</screen>
248
- 当发生这种情况时,范围将保持未摘要状态,直到表上的下一个常规vacuum运行 ,或者调用上述函数之一。
239
+ 当发生这种情况时,范围将保持未摘要状态,直到表上的下一个常规清理运行 ,或者调用上述函数之一。
249
240
</para>
250
241
<!-- pgdoc-cn_end sig_en=7b170653c5c2c90bf03a0d6bae3922e0 -->
251
242
0 commit comments