Skip to content

PostgreSQL: parse CREATE GROUP and DROP GROUP - #2429

Open
LucaCappelletti94 wants to merge 1 commit into
apache:mainfrom
LucaCappelletti94:pg-create-drop-group
Open

PostgreSQL: parse CREATE GROUP and DROP GROUP#2429
LucaCappelletti94 wants to merge 1 commit into
apache:mainfrom
LucaCappelletti94:pg-create-drop-group

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

PostgreSQL accepts GROUP wherever it accepts ROLE in these two statements, but the parser rejected it, so a schema dump containing CREATE GROUP could not be read at all.

The keyword is preserved rather than rewritten to ROLE. It looks like a pure alias in PostgreSQL, but Amazon Redshift has user groups as objects distinct from roles, so folding the two would change what the statement means there.

I will also add ALTER GROUP in a following PR, so as to keep this one smaller.

@LucaCappelletti94
LucaCappelletti94 marked this pull request as ready for review August 5, 2026 14:13
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