mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Fix assorted bugs in privileges-for-types patch.
Commit 729205571e
added privileges on data
types, but there were a number of oversights. The implementation of
default privileges for types missed a few places, and pg_dump was
utterly innocent of the whole concept. Per bug #7741 from Nathan Alden,
and subsequent wider investigation.
This commit is contained in:
@ -890,6 +890,9 @@ do { \
|
||||
}
|
||||
else if (strcmp(type, "TABLESPACE") == 0)
|
||||
CONVERT_PRIV('C', "CREATE");
|
||||
else if (strcmp(type, "TYPE") == 0 ||
|
||||
strcmp(type, "TYPES") == 0)
|
||||
CONVERT_PRIV('U', "USAGE");
|
||||
else if (strcmp(type, "FOREIGN DATA WRAPPER") == 0)
|
||||
CONVERT_PRIV('U', "USAGE");
|
||||
else if (strcmp(type, "FOREIGN SERVER") == 0)
|
||||
|
Reference in New Issue
Block a user