-
Notifications
You must be signed in to change notification settings - Fork 254
chore: add MAINTAIN support for postgres >= 17 #516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
chore: add MAINTAIN support for postgres >= 17 #516
Conversation
Hello ! Do you think it would be possible to get a release of the provider soon with this PR merged ? That would help us to get unblocked as we are trying to add the |
I needed this fix as well, but though it now is able to apply This is what happens. It either wants to do this or add the
I think the fix might need to account for this, but I haven't done a lot of testing. I'm going to replace all of our |
Any update on this? |
Just waiting on approval to merge by a reviewer with write access |
Any update on this? |
@cyrilgdn would you be able to review this change? |
I assume this will need investigating before merging? |
I don't see the "expanded permissions" issue mentioned above when running against a postgres 17 server. |
I closed my PR as a duplicate of this. Just for further details, quoting what I wrote there:
|
Hello, I also need this. Please merge and release if possible. Really appreciate this project. Thanks! |
@cyrilgdn I saw you made a release recently, would it be possible to review/merge this PR and make another release please ? Thanks 🙇 |
The MAINTAIN privilege was added in Postgres 17.
https://www.postgresql.org/docs/17/ddl-priv.html
This change adds support for users on Postgres 17, however, opening up means users of this provider attempting to add
MAINTAIN
permissions on databases <= 17 will get an error.This change addresses this issue:
#506
This pull request includes changes to the
postgresql/helpers.go
andpostgresql/helpers_test.go
files to add the new "MAINTAIN" privilege for tables. The most important changes are as follows:Privileges update:
postgresql/helpers.go
: Added "MAINTAIN" to the list of allowed privileges for tables.Test updates:
postgresql/helpers_test.go
: Updated the test case inTestArePrivilegesEqual
to include the "MAINTAIN" privilege.