mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Altering default privileges on schemas
Extend ALTER DEFAULT PRIVILEGES command to schemas. Author: Matheus Oliveira Reviewed-by: Petr Jelínek, Ashutosh Sharma https://commitfest.postgresql.org/13/887/
This commit is contained in:
@ -520,7 +520,9 @@ do { \
|
||||
CONVERT_PRIV('X', "EXECUTE");
|
||||
else if (strcmp(type, "LANGUAGE") == 0)
|
||||
CONVERT_PRIV('U', "USAGE");
|
||||
else if (strcmp(type, "SCHEMA") == 0)
|
||||
else if (strcmp(type, "SCHEMA") == 0 ||
|
||||
strcmp(type, "SCHEMAS") == 0
|
||||
)
|
||||
{
|
||||
CONVERT_PRIV('C', "CREATE");
|
||||
CONVERT_PRIV('U', "USAGE");
|
||||
|
Reference in New Issue
Block a user