]> 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)
commitb514a7460d9127ddda6598307272c701cbb133b7
tree2a04ac7147a24fa7a2f939b79b097b1ece98a6be
parentc4f4c7ca99169ac609df67c2d0eb78162484420c
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