Conversation
This comment was marked as resolved.
This comment was marked as resolved.
KnightMurloc
left a comment
There was a problem hiding this comment.
What about switches in motion_sanity_walker, DirectDispatchUpdateContentIdsFromPlan, IsBlockingOperator and IsMemoryIntensiveOperator? Also not ggdb specific, but strange that we don't have a case for Incremental sort here: ExecMaterializesOutput, plannode_type and is_projection_capable_plan.
|
We get wrong result if table is not distributed by group key. The |
could you share complete steps to reproduce? I am getting different plan. |
create table t1 (a int, b int) distributed randomly;
create index ON t1 (a);
-- 10 times
insert into t1 select a, a from generate_series(1, 10000);
analyze t1;
set enable_hashagg = off;
set optimizer = off;
explain select a, b, count(*) as res from t1 group by a, b; |
This comment was marked as resolved.
This comment was marked as resolved.
Thanks, test added, fix applied |
|
LGTM |
Enable Incremental Sort for Greengage
PostgreSQL implemented the incremental sort algorithm in commit
d2d8a22.Greengage included this code in commit
2feb2ccbut disabled it, as incrementalsort required adaptation to Greengage-specific code.
This commit enables incremental sort for Greengage:
enable_incremental_sortplanner parameter by default forGreengage deployments
planner
squelchmodeGG-399