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

Commit9d00cf4

Browse files
committed
Remove some redundant set_cheapest() calls.
Commite2fa76d centralized the responsibility for doingset_cheapest() for a baserel, but these functions added laterseemingly didn't get the memo. There's no apparent reason whywe need the cheapest path for these relation types to be availableany sooner than it is for other base relation types, so delete theduplicate calls. Doesn't save much since there's only one pathin these cases, but it might improve clarity.Richard GuoDiscussion:https://postgr.es/m/CAMbWs4-KFEU_fDuJPNCOkUu3rwvZvKBEytkd9VrM4kH4-2h1CQ@mail.gmail.com
1 parentd365ae7 commit9d00cf4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2966,9 +2966,6 @@ set_namedtuplestore_pathlist(PlannerInfo *root, RelOptInfo *rel,
29662966

29672967
/* Generate appropriate path */
29682968
add_path(rel,create_namedtuplestorescan_path(root,rel,required_outer));
2969-
2970-
/* Select cheapest path (pretty easy in this case...) */
2971-
set_cheapest(rel);
29722969
}
29732970

29742971
/*
@@ -2996,9 +2993,6 @@ set_result_pathlist(PlannerInfo *root, RelOptInfo *rel,
29962993

29972994
/* Generate appropriate path */
29982995
add_path(rel,create_resultscan_path(root,rel,required_outer));
2999-
3000-
/* Select cheapest path (pretty easy in this case...) */
3001-
set_cheapest(rel);
30022996
}
30032997

30042998
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp