Skip to content

Support extended stats creation on expressions#8501

Open
visridha wants to merge 3 commits intocitusdata:mainfrom
visridha:visridha/add_stats_creation_on_expressions
Open

Support extended stats creation on expressions#8501
visridha wants to merge 3 commits intocitusdata:mainfrom
visridha:visridha/add_stats_creation_on_expressions

Conversation

@visridha
Copy link
Contributor

@visridha visridha commented Mar 9, 2026

DESCRIPTION: Support extended stats creation on expressions
CREATE STATISTICS today gets pushed to the shards only if the statistics is on a column expression. However, PG14 added support for expressions (opExpr, FuncExprs) etc. This change adds support for it under a GUC.
This reuses the same logic as CHECK constraints to parse, transform, and deparse the exprs and add it to the statistics call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant