From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix planning of star-schema-style queries. |
Date: | 2015-02-28 17:43:20 |
Message-ID: | E1YRlQ8-0006Zq-P2@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-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
------
REL9_3_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/1b558782b7156bac9b4012ccee5338f1ccd236d9
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-02-28 19:34:42 | pgsql: Track typmods in plpgsql expression evaluation and assignment. |
Previous Message | Tom Lane | 2015-02-28 15:46:34 | pgsql: Suppress uninitialized-variable warning from less-bright compile |