Skip to content

Fix postgres_privileges for PostgreSQL >= 17#69003

Open
ndptech wants to merge 1 commit into
saltstack:3006.xfrom
ndptech:3006.x
Open

Fix postgres_privileges for PostgreSQL >= 17#69003
ndptech wants to merge 1 commit into
saltstack:3006.xfrom
ndptech:3006.x

Conversation

@ndptech
Copy link
Copy Markdown
Contributor

@ndptech ndptech commented Apr 28, 2026

What does this PR do?

Adds compatibility with PostgreSQL 17 and above

What issues does this PR fix or reference?

PostgreSQL 17 introduced a new table privilege of MAINTAIN which was not present in _PRIVILEGES_MAP, causing a KeyError when using the state postgres_privileges.present.

Previous Behavior

using the state postgres_privileges.present would crash with a KeyError

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

PostgreSQL 17 introduced a new table privilege of MAINTAIN which was not
present in _PRIVILEGES_MAP, causing a KeyError when using the state
postgres_privileges.present.
@ndptech ndptech requested a review from a team as a code owner April 28, 2026 13:46
@welcome
Copy link
Copy Markdown

welcome Bot commented Apr 28, 2026

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here's some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at saltproject.pdl@broadcom.com. We're glad you've joined our community and look forward to doing awesome things with you!

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