Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5cf6fdd

Browse files
committed
Adjust various references to GEQO being non-deterministic.
It's still non-deterministic in some sense ... but given fixed settingsand identical planning problems, it will now always choose the same plan,so we probably shouldn't tar it with that brush. Per bug #6565 fromGuillaume Cottenceau. Back-patch to 9.0 where the behavior was fixed.
1 parent0e20abd commit5cf6fdd

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

‎doc/src/sgml/config.sgml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2622,8 +2622,7 @@ SET ENABLE_SEQSCAN TO OFF;
26222622
planning using heuristic searching. This reduces planning time for
26232623
complex queries (those joining many relations), at the cost of producing
26242624
plans that are sometimes inferior to those found by the normal
2625-
exhaustive-search algorithm. Also, GEQO's searching is randomized and
2626-
therefore its plans may vary nondeterministically.
2625+
exhaustive-search algorithm.
26272626
For more information see <xref linkend="geqo">.
26282627
</para>
26292628

@@ -2662,9 +2661,11 @@ SET ENABLE_SEQSCAN TO OFF;
26622661
this many <literal>FROM</> items involved. (Note that a
26632662
<literal>FULL OUTER JOIN</> construct counts as only one <literal>FROM</>
26642663
item.) The default is 12. For simpler queries it is usually best
2665-
to use the deterministic, exhaustive planner, but for queries with
2666-
many tables the deterministic planner takes too long, often
2667-
longer than the penalty of executing a suboptimal plan.
2664+
to use the regular, exhaustive-search planner, but for queries with
2665+
many tables the exhaustive search takes too long, often
2666+
longer than the penalty of executing a suboptimal plan. Thus,
2667+
a threshold on the size of the query is a convenient way to manage
2668+
use of GEQO.
26682669
</para>
26692670
</listitem>
26702671
</varlistentry>
@@ -2876,7 +2877,7 @@ SELECT * FROM parent WHERE key = 2400;
28762877

28772878
<para>
28782879
Setting this value to <xref linkend="guc-geqo-threshold"> or more
2879-
may trigger use of the GEQO planner, resulting innondeterministic
2880+
may trigger use of the GEQO planner, resulting innon-optimal
28802881
plans. See <xref linkend="runtime-config-query-geqo">.
28812882
</para>
28822883
</listitem>
@@ -2911,7 +2912,7 @@ SELECT * FROM parent WHERE key = 2400;
29112912

29122913
<para>
29132914
Setting this value to <xref linkend="guc-geqo-threshold"> or more
2914-
may trigger use of the GEQO planner, resulting innondeterministic
2915+
may trigger use of the GEQO planner, resulting innon-optimal
29152916
plans. See <xref linkend="runtime-config-query-geqo">.
29162917
</para>
29172918
</listitem>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp