aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogutils.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2009-01-20 09:10:20 +0000
committerPeter Eisentraut <peter_e@gmx.net>2009-01-20 09:10:20 +0000
commit93a6be63a55a8cd0d73b3fa81eb6a46013a3a974 (patch)
tree687e12b06f610c10bd3acf2210275fbeb7cdfb84 /src/backend/access/transam/xlogutils.c
parentfe626982182bd1c8cd2606027a4d49a2f31a01c3 (diff)
downloadpostgresql-93a6be63a55a8cd0d73b3fa81eb6a46013a3a974.tar.gz
postgresql-93a6be63a55a8cd0d73b3fa81eb6a46013a3a974.zip
Revise the permission checking on user mapping DDL commands.
CREATE/ALTER/DROP USER MAPPING are now allowed either by the server owner or by a user with USAGE privileges for his own user name. This is more or less what the SQL standard wants anyway (plus "implementation-defined") Hide information_schema.user_mapping_options.option_value, unless the current user is the one associated with the user mapping, or is the server owner and the mapping is for PUBLIC, or is a superuser. This is to protect passwords. Also, fix a bug in information_schema._pg_foreign_servers, which hid servers using wrappers where the current user did not have privileges on the wrapper. The correct behavior is to hide servers where the current user has no privileges on the server.
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
0 files changed, 0 insertions, 0 deletions