Skip to content

PostgreSQL: Add support for CREATE STATISTICS - #3040

Open
lei-jia-xing wants to merge 1 commit into
apache:mainfrom
lei-jia-xing:postgres-create-statistics
Open

lei-jia-xing wants to merge 1 commit into
apache:mainfrom
lei-jia-xing:postgres-create-statistics

Conversation

@lei-jia-xing

Copy link
Copy Markdown

Closes #3035.

CREATE STATISTICS s ON a, b FROM t; now parses in the PostgreSQL and Generic dialects. The AST preserves the statistics name, kinds, expressions, and target table. Tests cover SQL round trips and a missing FROM clause.

PostgreSQL syntax reference

AI assistance was used to draft the implementation and tests.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PostgreSqlDialect rejects PostgreSQL's CREATE STATISTICS statement for defining extended statistics on a table.

1 participant