Fix planning of star-schema-style queries.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6f419958a61119c2f17e0a84a30e920050c843db
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-02-28T17:43:04Z
Releases: 9.2.11
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.

Files