LucaCappelletti94 opened a new pull request, #2828: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2828
PostgreSQL 17 added the `MAINTAIN` privilege, which allows `VACUUM`, `ANALYZE`, `CLUSTER`, `REFRESH MATERIALIZED VIEW`, `REINDEX` and `LOCK TABLE` on a relation. `GRANT MAINTAIN ON t TO r` fails with `Expected: a privilege keyword, found: MAINTAIN`, and `Action` has no variant for it, so a program reading PostgreSQL 17 ACLs into `Action` values cannot report it. This adds the `MAINTAIN` keyword and `Action::Maintain`, parsed with the other single-word privileges in `parse_grant_permission`, so it works in `GRANT`, `REVOKE` and `ALTER DEFAULT PRIVILEGES`. Like the other privileges it is not gated on a dialect, which we may discuss at some point whether that is a good idea. Documentation https://www.postgresql.org/docs/17/sql-grant.html -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
