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

Commitb1577a7

Browse files
committed
New cost model for planning, incorporating a penalty for random page
accesses versus sequential accesses, a (very crude) estimate of theeffects of caching on random page accesses, and cost to evaluate WHERE-clause expressions. Export critical parameters for this model as SETvariables. Also, create SET variables for the planner's enable flags(enable_seqscan, enable_indexscan, etc) so that these can be controlledmore conveniently than via PGOPTIONS.Planner now estimates both startup cost (cost before retrievingfirst tuple) and total cost of each path, so it can optimize querieswith LIMIT on a reasonable basis by interpolating between these costs.Same facility is a win for EXISTS(...) subqueries and some other cases.Redesign pathkey representation to achieve a major speedup in planning(I saw as much as 5X on a 10-way join); also minor changes in plannerto reduce memory consumption by recycling discarded Path nodes andnot constructing unnecessary lists.Minor cleanups to display more-plausible costs in some cases inEXPLAIN output.Initdb forced by change in interface to index cost estimationfunctions.
1 parent553b5da commitb1577a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3196
-1719
lines changed

‎doc/src/sgml/libpq++.sgml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -164,24 +164,6 @@
164164
sets the default mode for the genetic optimizer.
165165
</para>
166166
</listitem>
167-
<listitem>
168-
<para>
169-
<envar>PGRPLANS</envar>
170-
sets the default mode to allow or disable right-sided plans in the optimizer.
171-
</para>
172-
</listitem>
173-
<listitem>
174-
<para>
175-
<envar>PGCOSTHEAP</envar>
176-
sets the default cost for heap searches for the optimizer.
177-
</para>
178-
</listitem>
179-
<listitem>
180-
<para>
181-
<envar>PGCOSTINDEX</envar>
182-
sets the default cost for indexed searches for the optimizer.
183-
</para>
184-
</listitem>
185167
</itemizedlist>
186168
</para>
187169

‎doc/src/sgml/libpq.sgml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,24 +1900,6 @@ behavior for every Postgres session:
19001900
sets the default mode for the genetic optimizer.
19011901
</para>
19021902
</listitem>
1903-
<listitem>
1904-
<para>
1905-
<envar>PGRPLANS</envar>
1906-
sets the default mode to allow or disable right-sided plans in the optimizer.
1907-
</para>
1908-
</listitem>
1909-
<listitem>
1910-
<para>
1911-
<envar>PGCOSTHEAP</envar>
1912-
sets the default cost for heap searches for the optimizer.
1913-
</para>
1914-
</listitem>
1915-
<listitem>
1916-
<para>
1917-
<envar>PGCOSTINDEX</envar>
1918-
sets the default cost for indexed searches for the optimizer.
1919-
</para>
1920-
</listitem>
19211903
</itemizedlist>
19221904
</para>
19231905

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp