git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b777be0) | patch
Fix EquivalenceClass processing for nested append relations.
2014年3月28日 15:50:01 +0000 (11:50 -0400)
2014年3月28日 15:50:01 +0000 (11:50 -0400)
commit a87c729153e372f3731689a7be007bc2b53f1410
Fix EquivalenceClass processing for nested append relations.

The original coding of EquivalenceClasses didn't foresee that appendrel
child relations might themselves be appendrels; but this is possible for
example when a UNION ALL subquery scans a table with inheritance children.
The oversight led to failure to optimize ordering-related issues very well
for the grandchild tables. After some false starts involving explicitly
flattening the appendrel representation, we found that this could be fixed
easily by removing a few implicit assumptions about appendrel parent rels
not being children themselves.

Kyotaro Horiguchi and Tom Lane, reviewed by Noah Misch
src/backend/optimizer/path/allpaths.c diff | blob | blame | history
src/backend/optimizer/path/equivclass.c diff | blob | blame | history
src/backend/optimizer/plan/createplan.c diff | blob | blame | history
src/test/regress/expected/union.out diff | blob | blame | history
src/test/regress/sql/union.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /