Repository navigation
PostgreSQL: Parse statistics, view, and sequence statements - #9
Merged
Merged
Conversation
Parse CREATE, ALTER, and DROP STATISTICS, RECURSIVE views, the WITH [CASCADED | LOCAL] CHECK OPTION clause, value-less view options, the ALTER VIEW property forms, and ALTER SEQUENCE.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Aurora DSQL runs PostgreSQL's extended statistics statements, recursive and
check-option views, the
ALTER VIEWproperty forms, andALTER SEQUENCE.dsql-lintneeds structured parser output for these statements to validatethem and apply DSQL's statistics target and sequence rules.
What
CREATE,ALTER, andDROP STATISTICS, including PostgreSQL'sstatistics item forms (columns, windowless function calls, and parenthesized
expressions) and a signed 32-bit statistics target.
RECURSIVEviews,WITH [CASCADED | LOCAL] CHECK OPTION, andvalue-less view options.
ALTER VIEWproperty forms andALTER SEQUENCE,keeping
ALTER VIEW ... ASas its own statement.AS data_typeandOWNED BYanywhere inCREATE SEQUENCEandALTER SEQUENCEoption lists, and reject repeated clauses.sqlparser-dsqlto 0.62.12 for the linter update.Testing
family; the independent test audit proved every changed test.
crate, and warning-denying Rustdoc pass.
thumbv6m-none-eabino-std check and publish dry-run pass.cluster.
References