Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c2c4b5b

Browse files
committed
Merge commit 'c681907638cd9dba8c4ab25af2cf7fb129603d64' into PGPRO9_6_1C
2 parents 3eda599 + c681907 commit c2c4b5b

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

contrib/pg_pathman/expected/pathman_basic.out

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,31 +1023,29 @@ SELECT * FROM test.range_rel j1
10231023
JOIN test.range_rel j2 on j2.id = j1.id
10241024
JOIN test.num_range_rel j3 on j3.id = j1.id
10251025
WHERE j1.dt < '2015-03-01' AND j2.dt >= '2015-02-01' ORDER BY j2.dt;
1026-
QUERY PLAN
1027-
-------------------------------------------------------------------------------------------
1026+
QUERY PLAN
1027+
---------------------------------------------------------------------------------
10281028
Sort
10291029
Sort Key: j2.dt
10301030
-> Merge Join
1031-
Merge Cond: (j3.id = j2.id)
1031+
Merge Cond: (j2.id = j3.id)
1032+
-> Merge Join
1033+
Merge Cond: (j1.id = j2.id)
1034+
-> Merge Append
1035+
Sort Key: j1.id
1036+
-> Index Scan using range_rel_1_pkey on range_rel_1 j1
1037+
-> Index Scan using range_rel_2_pkey on range_rel_2 j1_1
1038+
-> Merge Append
1039+
Sort Key: j2.id
1040+
-> Index Scan using range_rel_2_pkey on range_rel_2 j2
1041+
-> Index Scan using range_rel_3_pkey on range_rel_3 j2_1
1042+
-> Index Scan using range_rel_4_pkey on range_rel_4 j2_2
10321043
-> Append
10331044
-> Index Scan using num_range_rel_1_pkey on num_range_rel_1 j3
10341045
-> Index Scan using num_range_rel_2_pkey on num_range_rel_2 j3_1
10351046
-> Index Scan using num_range_rel_3_pkey on num_range_rel_3 j3_2
10361047
-> Index Scan using num_range_rel_4_pkey on num_range_rel_4 j3_3
1037-
-> Materialize
1038-
-> Merge Join
1039-
Merge Cond: (j2.id = j1.id)
1040-
-> Merge Append
1041-
Sort Key: j2.id
1042-
-> Index Scan using range_rel_2_pkey on range_rel_2 j2
1043-
-> Index Scan using range_rel_3_pkey on range_rel_3 j2_1
1044-
-> Index Scan using range_rel_4_pkey on range_rel_4 j2_2
1045-
-> Materialize
1046-
-> Merge Append
1047-
Sort Key: j1.id
1048-
-> Index Scan using range_rel_1_pkey on range_rel_1 j1
1049-
-> Index Scan using range_rel_2_pkey on range_rel_2 j1_1
1050-
(22 rows)
1048+
(20 rows)
10511049

10521050
SET enable_hashjoin = ON;
10531051
SET enable_mergejoin = OFF;

contrib/pg_pathman/src/hooks.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pathman_join_pathlist_hook(PlannerInfo *root,
147147
if (saved_jointype == JOIN_UNIQUE_INNER)
148148
return; /* No way to do this with a parameterized inner path */
149149

150-
#if PG_VERSION_NUM >= 90603
150+
#if defined PGPRO_VERSION && PG_VERSION_NUM >= 90603
151151
initial_cost_nestloop(root, &workspace, jointype,
152152
outer, inner, /* built paths */
153153
extra);
@@ -159,7 +159,7 @@ pathman_join_pathlist_hook(PlannerInfo *root,
159159

160160
pathkeys = build_join_pathkeys(root, joinrel, jointype, outer->pathkeys);
161161

162-
#if PG_VERSION_NUM >= 90603
162+
#if defined PGPRO_VERSION && PG_VERSION_NUM >= 90603
163163
nest_path = create_nestloop_path(root, joinrel, jointype, &workspace,
164164
extra, outer, inner,
165165
extra->restrictlist,

0 commit comments

Comments
 (0)