pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Further mucking with PlaceHolderVar-related restrictions on join 5+ messages / 1 participants [nested] [flat]
* pgsql: Further mucking with PlaceHolderVar-related restrictions on join @ 2015-08-10 21:18 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-08-10 21:18 UTC (permalink / raw) To: pgsql-committers Further mucking with PlaceHolderVar-related restrictions on join order. Commit 85e5e222b1dd02f135a8c3bf387d0d6d88e669bd turns out not to have taken care of all cases of the partially-evaluatable-PlaceHolderVar problem found by Andreas Seltenreich's fuzz testing. I had set it up to check for risky PHVs only in the event that we were making a star-schema-based exception to the param_source_rels join ordering heuristic. However, it turns out that the problem can occur even in joins that satisfy the param_source_rels heuristic, in which case allow_star_schema_join() isn't consulted. Refactor so that we check for risky PHVs whenever the proposed join has any remaining parameterization. Back-patch to 9.2, like the previous patch (except for the regression test case, which only works back to 9.3 because it uses LATERAL). Note that this discovery implies that problems of this sort could've occurred in 9.2 and up even before the star-schema patch; though I've not tried to prove that experimentally. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/fda25b22018095fa86bee5a31920344976eb7479 Modified Files -------------- src/backend/optimizer/path/joinpath.c | 69 ++++++++++++++++++++------------- src/test/regress/expected/join.out | 20 ++++++++++ src/test/regress/sql/join.sql | 18 +++++++++ 3 files changed, 79 insertions(+), 28 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] 5+ messages in thread
* pgsql: Further mucking with PlaceHolderVar-related restrictions on join @ 2015-08-10 21:18 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-08-10 21:18 UTC (permalink / raw) To: pgsql-committers Further mucking with PlaceHolderVar-related restrictions on join order. Commit 85e5e222b1dd02f135a8c3bf387d0d6d88e669bd turns out not to have taken care of all cases of the partially-evaluatable-PlaceHolderVar problem found by Andreas Seltenreich's fuzz testing. I had set it up to check for risky PHVs only in the event that we were making a star-schema-based exception to the param_source_rels join ordering heuristic. However, it turns out that the problem can occur even in joins that satisfy the param_source_rels heuristic, in which case allow_star_schema_join() isn't consulted. Refactor so that we check for risky PHVs whenever the proposed join has any remaining parameterization. Back-patch to 9.2, like the previous patch (except for the regression test case, which only works back to 9.3 because it uses LATERAL). Note that this discovery implies that problems of this sort could've occurred in 9.2 and up even before the star-schema patch; though I've not tried to prove that experimentally. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/4200a92862604d6fcb726fbe7a3e2b38c1dc6837 Modified Files -------------- src/backend/optimizer/path/joinpath.c | 69 ++++++++++++++++++++------------- src/test/regress/expected/join.out | 20 ++++++++++ src/test/regress/sql/join.sql | 18 +++++++++ 3 files changed, 79 insertions(+), 28 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] 5+ messages in thread
* pgsql: Further mucking with PlaceHolderVar-related restrictions on join @ 2015-08-10 21:18 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-08-10 21:18 UTC (permalink / raw) To: pgsql-committers Further mucking with PlaceHolderVar-related restrictions on join order. Commit 85e5e222b1dd02f135a8c3bf387d0d6d88e669bd turns out not to have taken care of all cases of the partially-evaluatable-PlaceHolderVar problem found by Andreas Seltenreich's fuzz testing. I had set it up to check for risky PHVs only in the event that we were making a star-schema-based exception to the param_source_rels join ordering heuristic. However, it turns out that the problem can occur even in joins that satisfy the param_source_rels heuristic, in which case allow_star_schema_join() isn't consulted. Refactor so that we check for risky PHVs whenever the proposed join has any remaining parameterization. Back-patch to 9.2, like the previous patch (except for the regression test case, which only works back to 9.3 because it uses LATERAL). Note that this discovery implies that problems of this sort could've occurred in 9.2 and up even before the star-schema patch; though I've not tried to prove that experimentally. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/7371ab74feb7a6bcb8cab0ae4e1f7753460b703d Modified Files -------------- src/backend/optimizer/path/joinpath.c | 69 ++++++++++++++++++++------------- src/test/regress/expected/join.out | 20 ++++++++++ src/test/regress/sql/join.sql | 18 +++++++++ 3 files changed, 79 insertions(+), 28 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] 5+ messages in thread
* pgsql: Further mucking with PlaceHolderVar-related restrictions on join @ 2015-08-10 21:18 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-08-10 21:18 UTC (permalink / raw) To: pgsql-committers Further mucking with PlaceHolderVar-related restrictions on join order. Commit 85e5e222b1dd02f135a8c3bf387d0d6d88e669bd turns out not to have taken care of all cases of the partially-evaluatable-PlaceHolderVar problem found by Andreas Seltenreich's fuzz testing. I had set it up to check for risky PHVs only in the event that we were making a star-schema-based exception to the param_source_rels join ordering heuristic. However, it turns out that the problem can occur even in joins that satisfy the param_source_rels heuristic, in which case allow_star_schema_join() isn't consulted. Refactor so that we check for risky PHVs whenever the proposed join has any remaining parameterization. Back-patch to 9.2, like the previous patch (except for the regression test case, which only works back to 9.3 because it uses LATERAL). Note that this discovery implies that problems of this sort could've occurred in 9.2 and up even before the star-schema patch; though I've not tried to prove that experimentally. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/54cea765c633360dbb355b942f1144442176035b Modified Files -------------- src/backend/optimizer/path/joinpath.c | 69 ++++++++++++++++++++------------- 1 file changed, 41 insertions(+), 28 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] 5+ messages in thread
* pgsql: Further mucking with PlaceHolderVar-related restrictions on join @ 2015-08-10 21:18 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-08-10 21:18 UTC (permalink / raw) To: pgsql-committers Further mucking with PlaceHolderVar-related restrictions on join order. Commit 85e5e222b1dd02f135a8c3bf387d0d6d88e669bd turns out not to have taken care of all cases of the partially-evaluatable-PlaceHolderVar problem found by Andreas Seltenreich's fuzz testing. I had set it up to check for risky PHVs only in the event that we were making a star-schema-based exception to the param_source_rels join ordering heuristic. However, it turns out that the problem can occur even in joins that satisfy the param_source_rels heuristic, in which case allow_star_schema_join() isn't consulted. Refactor so that we check for risky PHVs whenever the proposed join has any remaining parameterization. Back-patch to 9.2, like the previous patch (except for the regression test case, which only works back to 9.3 because it uses LATERAL). Note that this discovery implies that problems of this sort could've occurred in 9.2 and up even before the star-schema patch; though I've not tried to prove that experimentally. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/f6d7a79f420df27146fea24cb7d6342f1fb4e1dc Modified Files -------------- src/backend/optimizer/path/joinpath.c | 69 ++++++++++++++++++++------------- src/test/regress/expected/join.out | 20 ++++++++++ src/test/regress/sql/join.sql | 18 +++++++++ 3 files changed, 79 insertions(+), 28 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] 5+ messages in thread
end of thread, other threads:[~2015-08-10 21:18 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-08-10 21:18 pgsql: Further mucking with PlaceHolderVar-related restrictions on join Tom Lane <tgl@sss.pgh.pa.us> 2015-08-10 21:18 pgsql: Further mucking with PlaceHolderVar-related restrictions on join Tom Lane <tgl@sss.pgh.pa.us> 2015-08-10 21:18 pgsql: Further mucking with PlaceHolderVar-related restrictions on join Tom Lane <tgl@sss.pgh.pa.us> 2015-08-10 21:18 pgsql: Further mucking with PlaceHolderVar-related restrictions on join Tom Lane <tgl@sss.pgh.pa.us> 2015-08-10 21:18 pgsql: Further mucking with PlaceHolderVar-related restrictions on join 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