pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix some planner issues with degenerate outer join clauses. 7+ messages / 1 participants [nested] [flat]
* pgsql: Fix some planner issues with degenerate outer join clauses. @ 2015-08-02 00:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-02 00:58 UTC (permalink / raw) To: pgsql-committers Fix some planner issues with degenerate outer join clauses. An outer join clause that didn't actually reference the RHS (perhaps only after constant-folding) could confuse the join order enforcement logic, leading to wrong query results. Also, nested occurrences of such things could trigger an Assertion that on reflection seems incorrect. Per fuzz testing by Andreas Seltenreich. The practical use of such cases seems thin enough that it's not too surprising we've not heard field reports about it. This has been broken for a long time, so back-patch to all active branches. Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/b9dfa07e8ebc4b6fded7a64038873e589eebd7df Modified Files -------------- src/backend/optimizer/path/joinrels.c | 26 ++++--- src/backend/optimizer/plan/initsplan.c | 18 ++++- src/test/regress/expected/join.out | 129 ++++++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 50 +++++++++++++ 4 files changed, 211 insertions(+), 12 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] 7+ messages in thread
* pgsql: Fix some planner issues with degenerate outer join clauses. @ 2015-08-02 00:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-02 00:58 UTC (permalink / raw) To: pgsql-committers Fix some planner issues with degenerate outer join clauses. An outer join clause that didn't actually reference the RHS (perhaps only after constant-folding) could confuse the join order enforcement logic, leading to wrong query results. Also, nested occurrences of such things could trigger an Assertion that on reflection seems incorrect. Per fuzz testing by Andreas Seltenreich. The practical use of such cases seems thin enough that it's not too surprising we've not heard field reports about it. This has been broken for a long time, so back-patch to all active branches. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e39a3b2efee07237ee34572472edf8a07dbb9e2f Modified Files -------------- src/backend/optimizer/path/joinrels.c | 26 ++++--- src/backend/optimizer/plan/initsplan.c | 18 ++++- src/test/regress/expected/join.out | 129 ++++++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 50 +++++++++++++ 4 files changed, 211 insertions(+), 12 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] 7+ messages in thread
* pgsql: Fix some planner issues with degenerate outer join clauses. @ 2015-08-02 00:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-02 00:58 UTC (permalink / raw) To: pgsql-committers Fix some planner issues with degenerate outer join clauses. An outer join clause that didn't actually reference the RHS (perhaps only after constant-folding) could confuse the join order enforcement logic, leading to wrong query results. Also, nested occurrences of such things could trigger an Assertion that on reflection seems incorrect. Per fuzz testing by Andreas Seltenreich. The practical use of such cases seems thin enough that it's not too surprising we've not heard field reports about it. This has been broken for a long time, so back-patch to all active branches. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/1044541dccfed0da1f27b2b8929e9524a1f577b4 Modified Files -------------- src/backend/optimizer/path/joinrels.c | 26 ++++--- src/backend/optimizer/plan/initsplan.c | 18 ++++- src/test/regress/expected/join.out | 129 ++++++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 50 +++++++++++++ 4 files changed, 211 insertions(+), 12 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] 7+ messages in thread
* pgsql: Fix some planner issues with degenerate outer join clauses. @ 2015-08-02 00:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-02 00:58 UTC (permalink / raw) To: pgsql-committers Fix some planner issues with degenerate outer join clauses. An outer join clause that didn't actually reference the RHS (perhaps only after constant-folding) could confuse the join order enforcement logic, leading to wrong query results. Also, nested occurrences of such things could trigger an Assertion that on reflection seems incorrect. Per fuzz testing by Andreas Seltenreich. The practical use of such cases seems thin enough that it's not too surprising we've not heard field reports about it. This has been broken for a long time, so back-patch to all active branches. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/44618f92bb3f287124c616cc9d25cce5592c3d2b Modified Files -------------- src/backend/optimizer/path/joinrels.c | 26 ++++--- src/backend/optimizer/plan/initsplan.c | 18 ++++- src/test/regress/expected/join.out | 129 ++++++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 50 +++++++++++++ 4 files changed, 211 insertions(+), 12 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] 7+ messages in thread
* pgsql: Fix some planner issues with degenerate outer join clauses. @ 2015-08-02 00:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-02 00:58 UTC (permalink / raw) To: pgsql-committers Fix some planner issues with degenerate outer join clauses. An outer join clause that didn't actually reference the RHS (perhaps only after constant-folding) could confuse the join order enforcement logic, leading to wrong query results. Also, nested occurrences of such things could trigger an Assertion that on reflection seems incorrect. Per fuzz testing by Andreas Seltenreich. The practical use of such cases seems thin enough that it's not too surprising we've not heard field reports about it. This has been broken for a long time, so back-patch to all active branches. Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/44679965f0bdf42275a567751fdddfe759795ee4 Modified Files -------------- src/backend/optimizer/path/joinrels.c | 26 ++++--- src/backend/optimizer/plan/initsplan.c | 18 ++++- src/test/regress/expected/join.out | 129 ++++++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 50 +++++++++++++ 4 files changed, 211 insertions(+), 12 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] 7+ messages in thread
* pgsql: Fix some planner issues with degenerate outer join clauses. @ 2015-08-02 00:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-02 00:58 UTC (permalink / raw) To: pgsql-committers Fix some planner issues with degenerate outer join clauses. An outer join clause that didn't actually reference the RHS (perhaps only after constant-folding) could confuse the join order enforcement logic, leading to wrong query results. Also, nested occurrences of such things could trigger an Assertion that on reflection seems incorrect. Per fuzz testing by Andreas Seltenreich. The practical use of such cases seems thin enough that it's not too surprising we've not heard field reports about it. This has been broken for a long time, so back-patch to all active branches. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/f69b4b9495269cc4957bac0f10aaada4d4cfa61e Modified Files -------------- src/backend/optimizer/path/joinrels.c | 26 ++++--- src/backend/optimizer/plan/initsplan.c | 18 ++++- src/test/regress/expected/join.out | 129 ++++++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 50 +++++++++++++ 4 files changed, 211 insertions(+), 12 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] 7+ messages in thread
* pgsql: Fix some planner issues with degenerate outer join clauses. @ 2015-08-02 00:58 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-08-02 00:58 UTC (permalink / raw) To: pgsql-committers Fix some planner issues with degenerate outer join clauses. An outer join clause that didn't actually reference the RHS (perhaps only after constant-folding) could confuse the join order enforcement logic, leading to wrong query results. Also, nested occurrences of such things could trigger an Assertion that on reflection seems incorrect. Per fuzz testing by Andreas Seltenreich. The practical use of such cases seems thin enough that it's not too surprising we've not heard field reports about it. This has been broken for a long time, so back-patch to all active branches. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/7968238eb17ed5f2f1123271549b7921fa1d3aba Modified Files -------------- src/backend/optimizer/path/joinrels.c | 26 ++++--- src/backend/optimizer/plan/initsplan.c | 18 ++++- src/test/regress/expected/join.out | 129 ++++++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 50 +++++++++++++ 4 files changed, 211 insertions(+), 12 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] 7+ messages in thread
end of thread, other threads:[~2015-08-02 00:58 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-08-02 00:58 pgsql: Fix some planner issues with degenerate outer join clauses. Tom Lane <tgl@sss.pgh.pa.us> 2015-08-02 00:58 pgsql: Fix some planner issues with degenerate outer join clauses. Tom Lane <tgl@sss.pgh.pa.us> 2015-08-02 00:58 pgsql: Fix some planner issues with degenerate outer join clauses. Tom Lane <tgl@sss.pgh.pa.us> 2015-08-02 00:58 pgsql: Fix some planner issues with degenerate outer join clauses. Tom Lane <tgl@sss.pgh.pa.us> 2015-08-02 00:58 pgsql: Fix some planner issues with degenerate outer join clauses. Tom Lane <tgl@sss.pgh.pa.us> 2015-08-02 00:58 pgsql: Fix some planner issues with degenerate outer join clauses. Tom Lane <tgl@sss.pgh.pa.us> 2015-08-02 00:58 pgsql: Fix some planner issues with degenerate outer join clauses. 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