Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit93854d5

Browse files
committed
Correct type of front_pathkey to PathKey
In sort_inner_and_outer we iterate a list of PathKey elements, but thevariable is declared as (List *). This mistake is benign, because weonly pass the pointer to lcons() and never dereference it.This exists since ~2004, but it's confusing. So fix and backpatch to allsupported branches.Backpatch-through: 10Discussion:https://postgr.es/m/bf3a6ea1-a7d8-7211-0669-189d5c169374%40enterprisedb.com
1 parente2d53c8 commit93854d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/optimizer/path/joinpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ sort_inner_and_outer(PlannerInfo *root,
996996

997997
foreach(l,all_pathkeys)
998998
{
999-
List*front_pathkey= (List*)lfirst(l);
999+
PathKey*front_pathkey= (PathKey*)lfirst(l);
10001000
List*cur_mergeclauses;
10011001
List*outerkeys;
10021002
List*innerkeys;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp