Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/columnar.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ extern bool columnar_enable_bloom_filter; /* bloom equality skipping (I7) */
extern bool columnar_enable_vectorization; /* vectorized aggregate path */
extern bool columnar_enable_group_vectorization; /* GROUP BY vectorized agg (#289) */
extern bool columnar_enable_ungrouped_vector_agg; /* filtered/extended ungrouped agg (#289) */
extern bool columnar_enable_parallel_vector_agg; /* parallel-aware ungrouped batch fold (#289 phase 5/6) */
extern int columnar_groupagg_max_groups; /* plan-time group-count cap (#289) */
extern bool columnar_enable_read_stream; /* stream/prefetch block reads (PG17+) */
extern bool columnar_enable_index_only_scan; /* allow index-only scans (gap 28) */
Expand Down
11 changes: 11 additions & 0 deletions src/columnar_tableam.c
Original file line number Diff line number Diff line change
Expand Up @@ -2278,6 +2278,17 @@ _PG_init(void)
0,
NULL, NULL, NULL);

DefineCustomBoolVariable("pgcolumnar.enable_parallel_vector_agg",
"Make the ungrouped vectorized batch fold parallel-aware: "
"each worker folds distinct row groups and emits a partial "
"aggregate a core Finalize combines.",
NULL,
&columnar_enable_parallel_vector_agg,
false,
PGC_USERSET,
0,
NULL, NULL, NULL);

DefineCustomIntVariable("pgcolumnar.groupagg_max_groups",
"Cap on the actual group count the grouped vectorized "
"aggregate builds before it stops with an error.",
Expand Down
Loading
Loading