]> granicus.if.org Git - postgresql/commitdiff
Force hash joins to be enabled in the hash join regression tests.
authorThomas Munro <tmunro@postgresql.org>
Tue, 9 Jul 2019 06:11:01 +0000 (18:11 +1200)
committerThomas Munro <tmunro@postgresql.org>
Tue, 9 Jul 2019 06:33:44 +0000 (18:33 +1200)
Otherwise the regressplans.sh tests generate extremely slow nested
loop joins.  Back-patch to 11 where the hash join tests came in.

Reported-by: Michael Paquier
Discussion: https://postgr.es/m/20190708055256.GB2709%40paquier.xyz

src/test/regress/expected/join_hash.out
src/test/regress/sql/join_hash.sql

index 9eee39bdd3234907f426457866ea184fa8a6ee7b..6080ebb961dc0009d02feecfa852eb36ea2dd26d 100644 (file)
@@ -4,6 +4,7 @@
 begin;
 set local min_parallel_table_scan_size = 0;
 set local parallel_setup_cost = 0;
+set local enable_hashjoin = on;
 -- Extract bucket and batch counts from an explain analyze plan.  In
 -- general we can't make assertions about how many batches (or
 -- buckets) will be required because it can vary, but we can in some
index ae352e9b0b886019b15c4bc6f7d1c4ded28cfec9..5b41d01a245446691db2617c8216a23d6f23189e 100644 (file)
@@ -6,6 +6,7 @@ begin;
 
 set local min_parallel_table_scan_size = 0;
 set local parallel_setup_cost = 0;
+set local enable_hashjoin = on;
 
 -- Extract bucket and batch counts from an explain analyze plan.  In
 -- general we can't make assertions about how many batches (or