pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Ensure dummy paths have correct required_outer if rel is paramet 6+ messages / 1 participants [nested] [flat]
* pgsql: Ensure dummy paths have correct required_outer if rel is paramet @ 2019-03-14 16:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-03-14 16:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ensure dummy paths have correct required_outer if rel is parameterized. The assertions added by commits 34ea1ab7f et al found another problem: set_dummy_rel_pathlist and mark_dummy_rel were failing to label the dummy paths they create with the correct outer_relids, in case the relation is necessarily parameterized due to having lateral references in its tlist. It's likely that this has no user-visible consequences in production builds, at the moment; but still an assertion failure is a bad thing, so back-patch the fix. Per bug #15694 from Roman Zharkov (via Alexander Lakhin) and an independent report by Tushar Ahuja. Discussion: https://postgr.es/m/15694-74f2ca97e7044f7f@postgresql.org Discussion: https://postgr.es/m/7d72ab20-c725-3ce2-f99d-4e64dd8a0de6@enterprisedb.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0a9d7e1f6d814799e6cd5046513702dd1fe38929 Modified Files -------------- src/backend/optimizer/path/allpaths.c | 3 ++- src/backend/optimizer/path/joinrels.c | 3 ++- src/test/regress/expected/join.out | 29 +++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 8 ++++++++ 4 files changed, 41 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Ensure dummy paths have correct required_outer if rel is paramet @ 2019-03-14 16:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-03-14 16:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ensure dummy paths have correct required_outer if rel is parameterized. The assertions added by commits 34ea1ab7f et al found another problem: set_dummy_rel_pathlist and mark_dummy_rel were failing to label the dummy paths they create with the correct outer_relids, in case the relation is necessarily parameterized due to having lateral references in its tlist. It's likely that this has no user-visible consequences in production builds, at the moment; but still an assertion failure is a bad thing, so back-patch the fix. Per bug #15694 from Roman Zharkov (via Alexander Lakhin) and an independent report by Tushar Ahuja. Discussion: https://postgr.es/m/15694-74f2ca97e7044f7f@postgresql.org Discussion: https://postgr.es/m/7d72ab20-c725-3ce2-f99d-4e64dd8a0de6@enterprisedb.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5b866005c8b039e7b473ffef1f27b162b0436948 Modified Files -------------- src/backend/optimizer/path/allpaths.c | 3 ++- src/backend/optimizer/path/joinrels.c | 3 ++- src/test/regress/expected/join.out | 29 +++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 8 ++++++++ 4 files changed, 41 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Ensure dummy paths have correct required_outer if rel is paramet @ 2019-03-14 16:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-03-14 16:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ensure dummy paths have correct required_outer if rel is parameterized. The assertions added by commits 34ea1ab7f et al found another problem: set_dummy_rel_pathlist and mark_dummy_rel were failing to label the dummy paths they create with the correct outer_relids, in case the relation is necessarily parameterized due to having lateral references in its tlist. It's likely that this has no user-visible consequences in production builds, at the moment; but still an assertion failure is a bad thing, so back-patch the fix. Per bug #15694 from Roman Zharkov (via Alexander Lakhin) and an independent report by Tushar Ahuja. Discussion: https://postgr.es/m/15694-74f2ca97e7044f7f@postgresql.org Discussion: https://postgr.es/m/7d72ab20-c725-3ce2-f99d-4e64dd8a0de6@enterprisedb.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d4b754c876d3338f314c9610e424083cfaff0717 Modified Files -------------- src/backend/optimizer/path/allpaths.c | 4 +++- src/backend/optimizer/path/joinrels.c | 4 +++- src/test/regress/expected/join.out | 29 +++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 8 ++++++++ 4 files changed, 43 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Ensure dummy paths have correct required_outer if rel is paramet @ 2019-03-14 16:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-03-14 16:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ensure dummy paths have correct required_outer if rel is parameterized. The assertions added by commits 34ea1ab7f et al found another problem: set_dummy_rel_pathlist and mark_dummy_rel were failing to label the dummy paths they create with the correct outer_relids, in case the relation is necessarily parameterized due to having lateral references in its tlist. It's likely that this has no user-visible consequences in production builds, at the moment; but still an assertion failure is a bad thing, so back-patch the fix. Per bug #15694 from Roman Zharkov (via Alexander Lakhin) and an independent report by Tushar Ahuja. Discussion: https://postgr.es/m/15694-74f2ca97e7044f7f@postgresql.org Discussion: https://postgr.es/m/7d72ab20-c725-3ce2-f99d-4e64dd8a0de6@enterprisedb.com Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0255329a780f9c52de5eb5fb73205e12c93deede Modified Files -------------- src/backend/optimizer/path/allpaths.c | 4 +++- src/backend/optimizer/path/joinrels.c | 4 +++- src/test/regress/expected/join.out | 29 +++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 8 ++++++++ 4 files changed, 43 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Ensure dummy paths have correct required_outer if rel is paramet @ 2019-03-14 16:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-03-14 16:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ensure dummy paths have correct required_outer if rel is parameterized. The assertions added by commits 34ea1ab7f et al found another problem: set_dummy_rel_pathlist and mark_dummy_rel were failing to label the dummy paths they create with the correct outer_relids, in case the relation is necessarily parameterized due to having lateral references in its tlist. It's likely that this has no user-visible consequences in production builds, at the moment; but still an assertion failure is a bad thing, so back-patch the fix. Per bug #15694 from Roman Zharkov (via Alexander Lakhin) and an independent report by Tushar Ahuja. Discussion: https://postgr.es/m/15694-74f2ca97e7044f7f@postgresql.org Discussion: https://postgr.es/m/7d72ab20-c725-3ce2-f99d-4e64dd8a0de6@enterprisedb.com Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/71288846efc89dc2fdfbb08e2807340ed6f8cd45 Modified Files -------------- src/backend/optimizer/path/allpaths.c | 3 ++- src/backend/optimizer/path/joinrels.c | 3 ++- src/test/regress/expected/join.out | 31 +++++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 8 ++++++++ 4 files changed, 43 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Ensure dummy paths have correct required_outer if rel is paramet @ 2019-03-14 16:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-03-14 16:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ensure dummy paths have correct required_outer if rel is parameterized. The assertions added by commits 34ea1ab7f et al found another problem: set_dummy_rel_pathlist and mark_dummy_rel were failing to label the dummy paths they create with the correct outer_relids, in case the relation is necessarily parameterized due to having lateral references in its tlist. It's likely that this has no user-visible consequences in production builds, at the moment; but still an assertion failure is a bad thing, so back-patch the fix. Per bug #15694 from Roman Zharkov (via Alexander Lakhin) and an independent report by Tushar Ahuja. Discussion: https://postgr.es/m/15694-74f2ca97e7044f7f@postgresql.org Discussion: https://postgr.es/m/7d72ab20-c725-3ce2-f99d-4e64dd8a0de6@enterprisedb.com Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/98f8ffa18ebe5d9cda40314002432635990c5b1d Modified Files -------------- src/backend/optimizer/path/allpaths.c | 3 ++- src/backend/optimizer/path/joinrels.c | 3 ++- src/test/regress/expected/join.out | 31 +++++++++++++++++++++++++++++++ src/test/regress/sql/join.sql | 8 ++++++++ 4 files changed, 43 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2019-03-14 16:16 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-03-14 16:16 pgsql: Ensure dummy paths have correct required_outer if rel is paramet Tom Lane <tgl@sss.pgh.pa.us> 2019-03-14 16:16 pgsql: Ensure dummy paths have correct required_outer if rel is paramet Tom Lane <tgl@sss.pgh.pa.us> 2019-03-14 16:16 pgsql: Ensure dummy paths have correct required_outer if rel is paramet Tom Lane <tgl@sss.pgh.pa.us> 2019-03-14 16:16 pgsql: Ensure dummy paths have correct required_outer if rel is paramet Tom Lane <tgl@sss.pgh.pa.us> 2019-03-14 16:16 pgsql: Ensure dummy paths have correct required_outer if rel is paramet Tom Lane <tgl@sss.pgh.pa.us> 2019-03-14 16:16 pgsql: Ensure dummy paths have correct required_outer if rel is paramet 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