pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Prevent improper reordering of antijoins vs. outer joins.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Prevent improper reordering of antijoins vs. outer joins.
@ 2015-04-25 20:44  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-04-25 20:44 UTC (permalink / raw)
  To: pgsql-committers

Prevent improper reordering of antijoins vs. outer joins.

An outer join appearing within the RHS of an antijoin can't commute with
the antijoin, but somehow I missed teaching make_outerjoininfo() about
that.  In Teodor Sigaev's recent trouble report, this manifests as a
"could not find RelOptInfo for given relids" error within eqjoinsel();
but I think silently wrong query results are possible too, if the planner
misorders the joins and doesn't happen to trigger any internal consistency
checks.  It's broken as far back as we had antijoins, so back-patch to all
supported branches.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/985da346ec740caf73ed1aefa9209cb4c3167c7e

Modified Files
--------------
src/backend/optimizer/plan/initsplan.c |    7 +++---
src/test/regress/expected/join.out     |   42 ++++++++++++++++++++++++++++++++
src/test/regress/sql/join.sql          |   17 +++++++++++++
3 files changed, 63 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Prevent improper reordering of antijoins vs. outer joins.
@ 2015-04-25 20:44  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-04-25 20:44 UTC (permalink / raw)
  To: pgsql-committers

Prevent improper reordering of antijoins vs. outer joins.

An outer join appearing within the RHS of an antijoin can't commute with
the antijoin, but somehow I missed teaching make_outerjoininfo() about
that.  In Teodor Sigaev's recent trouble report, this manifests as a
"could not find RelOptInfo for given relids" error within eqjoinsel();
but I think silently wrong query results are possible too, if the planner
misorders the joins and doesn't happen to trigger any internal consistency
checks.  It's broken as far back as we had antijoins, so back-patch to all
supported branches.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/950f80dd54a49f052919b45ffddbcea3deefe6a2

Modified Files
--------------
src/backend/optimizer/plan/initsplan.c |    7 +++---
src/test/regress/expected/join.out     |   42 ++++++++++++++++++++++++++++++++
src/test/regress/sql/join.sql          |   17 +++++++++++++
3 files changed, 63 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Prevent improper reordering of antijoins vs. outer joins.
@ 2015-04-25 20:44  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-04-25 20:44 UTC (permalink / raw)
  To: pgsql-committers

Prevent improper reordering of antijoins vs. outer joins.

An outer join appearing within the RHS of an antijoin can't commute with
the antijoin, but somehow I missed teaching make_outerjoininfo() about
that.  In Teodor Sigaev's recent trouble report, this manifests as a
"could not find RelOptInfo for given relids" error within eqjoinsel();
but I think silently wrong query results are possible too, if the planner
misorders the joins and doesn't happen to trigger any internal consistency
checks.  It's broken as far back as we had antijoins, so back-patch to all
supported branches.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3e47d0b2a300305a195ac7a6d8ebd6ff5291b7b4

Modified Files
--------------
src/backend/optimizer/plan/initsplan.c |    7 +++---
src/test/regress/expected/join.out     |   42 ++++++++++++++++++++++++++++++++
src/test/regress/sql/join.sql          |   17 +++++++++++++
3 files changed, 63 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Prevent improper reordering of antijoins vs. outer joins.
@ 2015-04-25 20:44  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-04-25 20:44 UTC (permalink / raw)
  To: pgsql-committers

Prevent improper reordering of antijoins vs. outer joins.

An outer join appearing within the RHS of an antijoin can't commute with
the antijoin, but somehow I missed teaching make_outerjoininfo() about
that.  In Teodor Sigaev's recent trouble report, this manifests as a
"could not find RelOptInfo for given relids" error within eqjoinsel();
but I think silently wrong query results are possible too, if the planner
misorders the joins and doesn't happen to trigger any internal consistency
checks.  It's broken as far back as we had antijoins, so back-patch to all
supported branches.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3cf8686014f91174018f20e01dbb0dafdcad0473

Modified Files
--------------
src/backend/optimizer/plan/initsplan.c |    7 +++---
src/test/regress/expected/join.out     |   42 ++++++++++++++++++++++++++++++++
src/test/regress/sql/join.sql          |   17 +++++++++++++
3 files changed, 63 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Prevent improper reordering of antijoins vs. outer joins.
@ 2015-04-25 20:44  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-04-25 20:44 UTC (permalink / raw)
  To: pgsql-committers

Prevent improper reordering of antijoins vs. outer joins.

An outer join appearing within the RHS of an antijoin can't commute with
the antijoin, but somehow I missed teaching make_outerjoininfo() about
that.  In Teodor Sigaev's recent trouble report, this manifests as a
"could not find RelOptInfo for given relids" error within eqjoinsel();
but I think silently wrong query results are possible too, if the planner
misorders the joins and doesn't happen to trigger any internal consistency
checks.  It's broken as far back as we had antijoins, so back-patch to all
supported branches.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/5f3d1909c58aee1911d4b1e7f643bb8db09e8da6

Modified Files
--------------
src/backend/optimizer/plan/initsplan.c |    7 +++---
src/test/regress/expected/join.out     |   42 ++++++++++++++++++++++++++++++++
src/test/regress/sql/join.sql          |   17 +++++++++++++
3 files changed, 63 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Prevent improper reordering of antijoins vs. outer joins.
@ 2015-04-25 20:44  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-04-25 20:44 UTC (permalink / raw)
  To: pgsql-committers

Prevent improper reordering of antijoins vs. outer joins.

An outer join appearing within the RHS of an antijoin can't commute with
the antijoin, but somehow I missed teaching make_outerjoininfo() about
that.  In Teodor Sigaev's recent trouble report, this manifests as a
"could not find RelOptInfo for given relids" error within eqjoinsel();
but I think silently wrong query results are possible too, if the planner
misorders the joins and doesn't happen to trigger any internal consistency
checks.  It's broken as far back as we had antijoins, so back-patch to all
supported branches.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2e38198f605f39e96544c81a43f1984147e0890c

Modified Files
--------------
src/backend/optimizer/plan/initsplan.c |    7 +++---
src/test/regress/expected/join.out     |   42 ++++++++++++++++++++++++++++++++
src/test/regress/sql/join.sql          |   17 +++++++++++++
3 files changed, 63 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2015-04-25 20:44 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-04-25 20:44 pgsql: Prevent improper reordering of antijoins vs. outer joins. Tom Lane <tgl@sss.pgh.pa.us>
2015-04-25 20:44 pgsql: Prevent improper reordering of antijoins vs. outer joins. Tom Lane <tgl@sss.pgh.pa.us>
2015-04-25 20:44 pgsql: Prevent improper reordering of antijoins vs. outer joins. Tom Lane <tgl@sss.pgh.pa.us>
2015-04-25 20:44 pgsql: Prevent improper reordering of antijoins vs. outer joins. Tom Lane <tgl@sss.pgh.pa.us>
2015-04-25 20:44 pgsql: Prevent improper reordering of antijoins vs. outer joins. Tom Lane <tgl@sss.pgh.pa.us>
2015-04-25 20:44 pgsql: Prevent improper reordering of antijoins vs. outer joins. Tom Lane <tgl@sss.pgh.pa.us>

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