diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-12-09 00:08:23 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-12-09 00:08:23 -0500 |
commit | b46c92112bf5afb2476d951b9817ebd8daa7b753 (patch) | |
tree | 3588d916ca3a2d71a0094cd72d889cc400ab2ba9 /src/bin/pg_dump/dumputils.c | |
parent | a99c42f291421572aef2b0a9360294c7d89b8bc7 (diff) | |
download | postgresql-b46c92112bf5afb2476d951b9817ebd8daa7b753.tar.gz postgresql-b46c92112bf5afb2476d951b9817ebd8daa7b753.zip |
Fix assorted bugs in privileges-for-types patch.
Commit 729205571e81b4767efc42ad7beb53663e08d1ff 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.
Diffstat (limited to 'src/bin/pg_dump/dumputils.c')
-rw-r--r-- | src/bin/pg_dump/dumputils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/pg_dump/dumputils.c b/src/bin/pg_dump/dumputils.c index 91f2774955c..639ee9e63ad 100644 --- a/src/bin/pg_dump/dumputils.c +++ b/src/bin/pg_dump/dumputils.c @@ -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) |