File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 20
20
本章基于
21
21
<xref linkend="using-explain">和<xref linkend="planner-stats">
22
22
中讨论的内容,
23
- 介绍更多关于规划器如何使用系统统计信息预估一个查询运行的各个阶段可能返回行数的细节 。
24
- 这是规划过程中的一个重要部分 ,
25
- 因为它提供了开销计算中的大部分原始信息 。
23
+ 介绍更多关于规划器如何使用系统统计信息预估一个查询的各部分可能返回行数的细节 。
24
+ 这是规划过程中一个重要的部分 ,
25
+ 因为它提供了代价计算所需的大部分原始信息 。
26
26
</para>
27
27
28
28
<!--
36
36
<para>
37
37
本章的目的不是记录代码的细节(代码本身就是文档),
38
38
而是给出一个规划器如何使用统计信息的概述。
39
- 这样可能可以降低那些以后想阅读这部分代码的人的学习难度 。
39
+ 这样也许可以降低那些以后想阅读这部分代码的人的学习难度 。
40
40
</para>
41
41
42
42
<sect1 id="row-estimation-examples">
@@ -89,7 +89,7 @@ EXPLAIN SELECT * FROM tenk1;
89
89
-->
90
90
规划器如何判断<structname>tenk1</structname>里面行的基数
91
91
在<xref linkend="planner-stats">介绍,
92
- 但为了完整,在这里重复一下。行数或页数是从<structname>pg_class</structname>里面查出来的 :
92
+ 但为了完整,在这里重复一下。行数或页数是从<structname>pg_class</structname>中查出来的 :
93
93
94
94
<programlisting>
95
95
SELECT relpages, reltuples FROM pg_class WHERE relname = 'tenk1';
@@ -124,7 +124,7 @@ SELECT relpages, reltuples FROM pg_class WHERE relname = 'tenk1';
124
124
Let's move on to an example with a range condition in its
125
125
<literal>WHERE</literal> clause:
126
126
-->
127
- 换一个在WHERE子句中有范围条件的例子 :
127
+ 换一个WHERE子句是范围条件的例子 :
128
128
<programlisting>
129
129
EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 1000;
130
130
You can’t perform that action at this time.
0 commit comments