mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Fix up some loose ends for CURRENT_USER as RoleSpec
In commit 31eae6028e
, some documents were not updated to show the new
capability; fix that. Also, the error message you get when CURRENT_USER
and SESSION_USER are used in a context that doesn't accept them could be
clearer about it being a problem only in those contexts; so add the
word "here".
Author: Kyotaro HORIGUCHI
His patch submission also included changes to GRANT/REVOKE, but those
seemed more controversial, so I left them out. We can reconsider these
changes later.
This commit is contained in:
@ -43,7 +43,7 @@ CREATE ROLE "current_user";
|
||||
CREATE ROLE "session_user";
|
||||
CREATE ROLE "user";
|
||||
CREATE ROLE current_user; -- error
|
||||
ERROR: CURRENT_USER cannot be used as a role name
|
||||
ERROR: CURRENT_USER cannot be used as a role name here
|
||||
LINE 1: CREATE ROLE current_user;
|
||||
^
|
||||
CREATE ROLE current_role; -- error
|
||||
@ -51,7 +51,7 @@ ERROR: syntax error at or near "current_role"
|
||||
LINE 1: CREATE ROLE current_role;
|
||||
^
|
||||
CREATE ROLE session_user; -- error
|
||||
ERROR: SESSION_USER cannot be used as a role name
|
||||
ERROR: SESSION_USER cannot be used as a role name here
|
||||
LINE 1: CREATE ROLE session_user;
|
||||
^
|
||||
CREATE ROLE user; -- error
|
||||
|
Reference in New Issue
Block a user