mirror of
https://github.com/postgres/postgres.git
synced 2025-04-18 13:44:19 +03:00
Doc: note that two examples in optimizer/README are oversimplified.
These examples fail to account for join clauses generated by EquivalenceClasses, but since we haven't mentioned EquivalenceClasses yet 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
This commit is contained in:
parent
b65b9da568
commit
dd496eedea
@ -143,7 +143,6 @@ For example:
|
|||||||
{1 2},{2 3},{3 4}
|
{1 2},{2 3},{3 4}
|
||||||
{1 2 3},{2 3 4}
|
{1 2 3},{2 3 4}
|
||||||
{1 2 3 4}
|
{1 2 3 4}
|
||||||
(other possibilities will be excluded for lack of join clauses)
|
|
||||||
|
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM tab1, tab2, tab3, tab4
|
FROM tab1, tab2, tab3, tab4
|
||||||
@ -156,6 +155,11 @@ For example:
|
|||||||
{1 2 3},{1 3 4},{1 2 4}
|
{1 2 3},{1 3 4},{1 2 4}
|
||||||
{1 2 3 4}
|
{1 2 3 4}
|
||||||
|
|
||||||
|
In each of these examples, other join-order possibilities will be excluded
|
||||||
|
for lack of join clauses. (In reality, use of EquivalenceClasses would
|
||||||
|
allow us to deduce additional join clauses that allow more join orders,
|
||||||
|
but here we ignore that to preserve the simplicity of the examples.)
|
||||||
|
|
||||||
We consider left-handed plans (the outer rel of an upper join is a joinrel,
|
We consider left-handed plans (the outer rel of an upper join is a joinrel,
|
||||||
but the inner is always a single list item); right-handed plans (outer rel
|
but the inner is always a single list item); right-handed plans (outer rel
|
||||||
is always a single item); and bushy plans (both inner and outer can be
|
is always a single item); and bushy plans (both inner and outer can be
|
||||||
|
Loading…
x
Reference in New Issue
Block a user