mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
Provide per-table permissions for vacuum and analyze.
Currently a table can only be vacuumed or analyzed by its owner or a superuser. This can now be extended to any user by means of an appropriate GRANT. Nathan Bossart Reviewed by: Bharath Rupireddy, Kyotaro Horiguchi, Stephen Frost, Robert Haas, Mark Dilger, Tom Lane, Corey Huinker, David G. Johnston, Michael Paquier. Discussion: https://postgr.es/m/20220722203735.GB3996698@nathanxps13
This commit is contained in:
@ -7482,6 +7482,13 @@ privilege: SELECT opt_column_list
|
||||
n->cols = NIL;
|
||||
$$ = n;
|
||||
}
|
||||
| analyze_keyword
|
||||
{
|
||||
AccessPriv *n = makeNode(AccessPriv);
|
||||
n->priv_name = pstrdup("analyze");
|
||||
n->cols = NIL;
|
||||
$$ = n;
|
||||
}
|
||||
| ColId opt_column_list
|
||||
{
|
||||
AccessPriv *n = makeNode(AccessPriv);
|
||||
|
Reference in New Issue
Block a user