Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d1abae

Browse files
committed
concat restrict_info with 'baserestrictinfo' of outerrel & innerrel
1 parent 74438aa commit 9d1abae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ try_crossmatch_path(RestrictInfo *restrInfo,
335335

336336
/* Remove current RestrictInfo from restrict clauses */
337337
restrict_clauses = list_delete_ptr(list_copy(extra->restrictlist), restrInfo);
338+
restrict_clauses = list_concat_unique(restrict_clauses,
339+
outerrel->baserestrictinfo);
340+
restrict_clauses = list_concat_unique(restrict_clauses,
341+
innerrel->baserestrictinfo);
338342

339343
outer_path = crossmatch_find_cheapest_path(root, joinrel, outerrel);
340344
inner_path = crossmatch_find_cheapest_path(root, joinrel, innerrel);

0 commit comments

Comments
 (0)