Docs issue for CREATE SCHEMA ... AUTHORIZATION permissions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-docs(at)postgreSQL(dot)org
Subject: Docs issue for CREATE SCHEMA ... AUTHORIZATION permissions
Date: 2012-10-04 03:14:48
Message-ID: 14051.1349320488@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The CREATE SCHEMA reference page says "Only superusers can create
schemas owned by users other than themselves". ISTM this is incorrect,
or at least not the whole truth, because the test that is actually in
the code is check_is_member_of_role(), that is whether the current user
is allowed to SET ROLE to the target.

In the SET ROLE reference page we say "The specified role_name must be a
role that the current session user is a member of. (If the session user
is a superuser, any role can be selected.)" Is that good wording to use
in CREATE SCHEMA too, or would somebody like to wordsmith it?

regards, tom lane

Browse pgsql-docs by date

  From Date Subject
Next Message Fujii Masao 2012-10-08 23:45:06 tablespace option
Previous Message Tianyin Xu 2012-10-03 00:36:28 Manual Entries of commit_delay and commit_siblings are not complete.