Skip to content

PostgreSQL: Support ALTER MATERIALIZED VIEW column options and storage - #3084

Draft
icefery wants to merge 1 commit into
apache:mainfrom
icefery:postgres/alter-materialized-view-column-options
Draft

icefery wants to merge 1 commit into
apache:mainfrom
icefery:postgres/alter-materialized-view-column-options

Conversation

@icefery

@icefery icefery commented Dec 1, 2026

Copy link
Copy Markdown

Dialects: PostgreSQL, Generic

ALTER MATERIALIZED VIEW v ALTER COLUMN c SET (n_distinct = 42) currently fails. This adds column-level SET (...), RESET (...), and SET STORAGE by sharing the parser with ALTER TABLE. SET STORAGE DEFAULT works for both; CREATE TYPE and ordinary ALTER VIEW keep their existing syntax.

PostgreSQL ALTER MATERIALIZED VIEW syntax · Shared PostgreSQL grammar

15 focused tests passed with all features. Rustfmt and Clippy on the library and affected test targets passed. The round-trip fuzzer completed 512 instrumented runs.

AI assistance was used for the implementation, tests, and draft.

Share column SET, RESET, and SET STORAGE parsing with ALTER TABLE.
Keep STORAGE DEFAULT specific to column alterations.
@icefery
icefery marked this pull request as draft December 1, 2026 13:27
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.

1 participant