sort-inner-and-outer-fix.patch
text/x-patch
Filename: sort-inner-and-outer-fix.patch
Type: text/x-patch
Part: 0
Message:
minor bug in sort_inner_and_outer()
Patch
Format: unified
| File | + | − |
|---|---|---|
| src/backend/optimizer/path/joinpath.c | 1 | 1 |
diff --git a/src/backend/optimizer/path/joinpath.c b/src/backend/optimizer/path/joinpath.c
index f96fc9fd282..81e04b6ac9d 100644
--- a/src/backend/optimizer/path/joinpath.c
+++ b/src/backend/optimizer/path/joinpath.c
@@ -1258,7 +1258,7 @@ sort_inner_and_outer(PlannerInfo *root,
foreach(l, all_pathkeys)
{
- List *front_pathkey = (List *) lfirst(l);
+ PathKey *front_pathkey = lfirst_node(PathKey, l);
List *cur_mergeclauses;
List *outerkeys;
List *innerkeys;