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

Commit3fdc374

Browse files
author
Etsuro Fujita
committed
Save PathTargets for distinct/ordered relations in root->upper_targets[].
For the convenience of extensions, we previously only saved PathTargetsfor grouped, window, and final relations in root->upper_targets[] ingrouping_planner(). To improve the convenience, save PathTargets fordistinct and ordered relations as well.Author: Antonin Houska, with an additional change by meDiscussion:https://postgr.es/m/10994.1549559088@localhost
1 parenta916bdc commit3fdc374

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/optimizer/plan/planner.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,6 +2035,8 @@ grouping_planner(PlannerInfo *root, bool inheritance_update,
20352035
* of the corresponding upperrels might not be needed for this query.
20362036
*/
20372037
root->upper_targets[UPPERREL_FINAL]=final_target;
2038+
root->upper_targets[UPPERREL_ORDERED]=final_target;
2039+
root->upper_targets[UPPERREL_DISTINCT]=sort_input_target;
20382040
root->upper_targets[UPPERREL_WINDOW]=sort_input_target;
20392041
root->upper_targets[UPPERREL_GROUP_AGG]=grouping_target;
20402042

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp