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

Commitdd496ee

Browse files
tglsfdcDavid Rowley
and
David Rowley
committed
Doc: note that two examples in optimizer/README are oversimplified.
These examples fail to account for join clauses generated byEquivalenceClasses, but since we haven't mentioned EquivalenceClassesyet it seems like it'd just add confusion to make them fully accurate.Instead, parenthetically note that they're oversimplified.Reported-by: Zeyuan Hu <ferrishu3886@gmail.com>Co-authored-by: David Rowley <dgrowleyml@gmail.com>Co-authored-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/CACvHWmYFo+60yMqKJajDDvKN5EM41YHrCT3oxukwXmGAqpWvyw@mail.gmail.com
1 parentb65b9da commitdd496ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/backend/optimizer/README

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ For example:
143143
{1 2},{2 3},{3 4}
144144
{1 2 3},{2 3 4}
145145
{1 2 3 4}
146-
(other possibilities will be excluded for lack of join clauses)
147146

148147
SELECT *
149148
FROM tab1, tab2, tab3, tab4
@@ -156,6 +155,11 @@ For example:
156155
{1 2 3},{1 3 4},{1 2 4}
157156
{1 2 3 4}
158157

158+
In each of these examples, other join-order possibilities will be excluded
159+
for lack of join clauses. (In reality, use of EquivalenceClasses would
160+
allow us to deduce additional join clauses that allow more join orders,
161+
but here we ignore that to preserve the simplicity of the examples.)
162+
159163
We consider left-handed plans (the outer rel of an upper join is a joinrel,
160164
but the inner is always a single list item); right-handed plans (outer rel
161165
is always a single item); and bushy plans (both inner and outer can be

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp