Skip to content

PostgreSQL: Support value lists in ALTER ROLE ... SET - #3056

Open
LucaCappelletti94 wants to merge 6 commits into
upstream/alter-database-setfrom
upstream/pg-alter-role-set-value-list
Open

LucaCappelletti94 wants to merge 6 commits into
upstream/alter-database-setfrom
upstream/pg-alter-role-set-value-list

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

ALTER ROLE app SET search_path = api, public fails with Expected: end of statement, found: , because AlterRoleOperation::Set holds one expression. PostgreSQL takes a list of values there, as SET itself does, and a role's search_path usually names two or more schemas.

PostgreSQL parses ALTER ROLE ... SET and ALTER DATABASE ... SET with the same clause, so this builds on #2843 and stores the setting as its ConfigurationSet. That also brings SET TIME ZONE and the other special forms to ALTER ROLE. SetConfigValue goes away, and the statement now prints = where it printed TO.

Plus, this is a nice cleanup.

@codecov-commenter

codecov-commenter commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.63%. Comparing base (5568240) to head (de40d7a).

Additional details and impacted files
@@                     Coverage Diff                      @@
##           upstream/alter-database-set    #3056   +/-   ##
============================================================
  Coverage                        83.63%   83.63%           
============================================================
  Files                               42       42           
  Lines                            35785    35752   -33     
  Branches                         35785    35752   -33     
============================================================
- Hits                             29929    29902   -27     
+ Misses                            2422     2420    -2     
+ Partials                          3434     3430    -4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants