Skip to content

Support PostgreSQL ALTER DEFAULT PRIVILEGES - #2417

Open
LucaCappelletti94 wants to merge 1 commit into
apache:mainfrom
LucaCappelletti94:pg-alter-default-privileges
Open

Support PostgreSQL ALTER DEFAULT PRIVILEGES#2417
LucaCappelletti94 wants to merge 1 commit into
apache:mainfrom
LucaCappelletti94:pg-alter-default-privileges

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

ALTER DEFAULT PRIVILEGES was not a recognised ALTER target, so it failed at the DEFAULT keyword.

The statement now parses into AlterDefaultPrivileges, carrying the optional FOR ROLE and IN SCHEMA lists and the abbreviated GRANT or REVOKE, so it round trips rather than being consumed and discarded.

I tried to maximize code reuse from analogous structs.
All of these PRs come from trying to parse pg_dump -s outputs.

@LucaCappelletti94
LucaCappelletti94 marked this pull request as ready for review July 30, 2026 19:31
@LucaCappelletti94
LucaCappelletti94 force-pushed the pg-alter-default-privileges branch from 71004b0 to 72c56b7 Compare July 30, 2026 19:33
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