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

Commit98d476a

Browse files
author
Amit Kapila
committed
Improve coding pattern in Parallel Append code.
The create_append_path code didn't consider that list_concat willmodify it's first argument leading to inconsistent traversal ofresulting list. In practice, it won't lead to any user-visible bugbut changing it for making the code behave consistently.Reported-by: Tom LaneAuthor: Tom LaneReviewed-by: Amit Khandekar and Amit KapilaDiscussion:https://postgr.es/m/32365.1528994120@sss.pgh.pa.us
1 parentc704897 commit98d476a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/optimizer/util/pathnode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ create_append_path(PlannerInfo *root,
12741274
pathnode->first_partial_path=list_length(subpaths);
12751275
pathnode->subpaths=list_concat(subpaths,partial_subpaths);
12761276

1277-
foreach(l,subpaths)
1277+
foreach(l,pathnode->subpaths)
12781278
{
12791279
Path*subpath= (Path*)lfirst(l);
12801280

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp