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

Commit4f15e5d

Browse files
committed
Defer creation of partially-grouped relation until it's needed.
This avoids unnecessarily creating a RelOptInfo for which we have noactual need. This idea is from Ashutosh Bapat, who wrote a verydifferent patch to accomplish a similar goal. It will be moreimportant if and when we get partition-wise aggregate, since thenthere could be many partially grouped relations all of which couldpotentially be unnecessary. In passing, this sets the groupingrelation's reltarget, which wasn't done previously but makes thingssimpler for this refactoring.Along the way, adjust things so that add_paths_to_partial_grouping_rel,now renamed create_partial_grouping_paths, does not perform the Gatheror Gather Merge steps to generate non-partial paths from partialpaths; have the caller do it instead. This is again for theconvenience of partition-wise aggregate, which wants to injectadditional partial paths are created and before we decide which onesto Gather/Gather Merge. This might seem like a separate change, butit's actually pretty closely entangled; I couldn't really see muchvalue in separating it and having to change some things twice.Patch by me, reviewed by Ashutosh Bapat.Discussion:http://postgr.es/m/CA+TgmoZ+ZJTVad-=vEq393N99KTooxv9k7M+z73qnTAqkb49BQ@mail.gmail.com
1 parent4dba331 commit4f15e5d

File tree

1 file changed

+170
-154
lines changed

1 file changed

+170
-154
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp