diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-12-09 00:08:30 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-12-09 00:08:30 -0500 |
commit | 6cb8c6043ee47ced46da131bc0705e9c4bdd8667 (patch) | |
tree | 96be2eaeafeccc7171e643bd9c37a84ab6bb5d57 /src/bin/pg_dump/dumputils.c | |
parent | cedebc1fd396785ca98cec0570f1b34211b83813 (diff) | |
download | postgresql-6cb8c6043ee47ced46da131bc0705e9c4bdd8667.tar.gz postgresql-6cb8c6043ee47ced46da131bc0705e9c4bdd8667.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) |