From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix planning of star-schema-style queries.
Date: Sat, 28 Feb 2015 17:43:20 +0000
Message-ID: <E1YRlQ8-0006Zm-On@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b514a7460d9127ddda6598307272c701cbb133b7
Modified Files
--------------
src/backend/optimizer/README | 34 +++++++++++++++++++++------
src/backend/optimizer/path/joinpath.c | 41 +++++++++++++++++++++++++--------
src/test/regress/expected/join.out | 19 +++++++++++++++
src/test/regress/sql/join.sql | 9 ++++++++
4 files changed, 86 insertions(+), 17 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Fix planning of star-schema-style queries.
In-Reply-To: <E1YRlQ8-0006Zm-On@gemulon.postgresql.org>
References: <E1YRlQ8-0006Zm-On@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox