File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -86,3 +86,8 @@ WHERE j1.dt < '2015-03-01' AND j2.dt >= '2015-02-01' ORDER BY j2.dt;
8686 -> Index Scan using range_rel_2_pkey on range_rel_2 j1_1
8787(22 rows)
8888
89+ SET enable_hashjoin = ON;
90+ SET enable_nestloop = ON;
91+ DROP SCHEMA test CASCADE;
92+ NOTICE: drop cascades to 12 other objects
93+ DROP EXTENSION pg_pathman;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ CREATE SCHEMA pathman;
55CREATE EXTENSION pg_pathman SCHEMA pathman;
66CREATE SCHEMA test ;
77
8+
89CREATE TABLE test .range_rel (
910 id SERIAL PRIMARY KEY ,
1011 dt TIMESTAMP ,
@@ -35,8 +36,16 @@ INSERT INTO test.num_range_rel
3536SET enable_hashjoin = OFF;
3637SET enable_nestloop = OFF;
3738SET enable_mergejoin = ON ;
39+
3840EXPLAIN (COSTS OFF)
3941SELECT * FROM test .range_rel j1
4042JOIN test .range_rel j2 on j2 .id = j1 .id
4143JOIN test .num_range_rel j3 on j3 .id = j1 .id
4244WHERE j1 .dt < ' 2015-03-01' AND j2 .dt >= ' 2015-02-01' ORDER BY j2 .dt ;
45+
46+ SET enable_hashjoin = ON ;
47+ SET enable_nestloop = ON ;
48+
49+
50+ DROP SCHEMA test CASCADE;
51+ DROP EXTENSION pg_pathman;
You can’t perform that action at this time.
0 commit comments