]> granicus.if.org Git - postgresql/commit
Fix planning of star-schema-style queries.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Feb 2015 17:43:04 +0000 (12:43 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Feb 2015 17:43:04 +0000 (12:43 -0500)
commit1b558782b7156bac9b4012ccee5338f1ccd236d9
treed78e760b07654d2dddaf0dbb7630ca574c859140
parentabce8dc7d6d8e30f2d4b02219eb73c205e5bf199
Fix planning of star-schema-style queries.

Part of the intent of the parameterized-path mechanism was to handle
star-schema queries efficiently, but some overly-restrictive search
limiting logic added in commit e2fa76d80ba571d4de8992de6386536867250474
prevented such cases from working as desired.  Fix that and add a
regression test about it.  Per gripe from Marc Cousin.

This is arguably a bug rather than a new feature, so back-patch to 9.2
where parameterized paths were introduced.
src/backend/optimizer/README
src/backend/optimizer/path/joinpath.c
src/test/regress/expected/join.out
src/test/regress/sql/join.sql