mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Remove redundant CREATEUSER/NOCREATEUSER options in CREATE ROLE et al.
Once upon a time we did not have a separate CREATEROLE privilege, and CREATEUSER effectively meant SUPERUSER. When we invented CREATEROLE (in 8.1) we also added SUPERUSER so as to have a less confusing keyword for this role property. However, we left CREATEUSER in place as a deprecated synonym for SUPERUSER, because of backwards-compatibility concerns. It's still there and is still confusing people, as for example in bug #13694 from Justin Catterson. 9.6 will be ten years or so later, which surely ought to be long enough to end the deprecation and just remove these old keywords. Hence, do so.
This commit is contained in:
@ -3,7 +3,7 @@ SET bytea_output TO escape;
|
||||
--
|
||||
-- create user defined conversion
|
||||
--
|
||||
CREATE USER conversion_test_user WITH NOCREATEDB NOCREATEUSER;
|
||||
CREATE USER conversion_test_user WITH NOCREATEDB NOCREATEROLE;
|
||||
SET SESSION AUTHORIZATION conversion_test_user;
|
||||
CREATE CONVERSION myconv FOR 'LATIN1' TO 'UTF8' FROM iso8859_1_to_utf8;
|
||||
--
|
||||
|
@ -4,7 +4,7 @@ SET bytea_output TO escape;
|
||||
--
|
||||
-- create user defined conversion
|
||||
--
|
||||
CREATE USER conversion_test_user WITH NOCREATEDB NOCREATEUSER;
|
||||
CREATE USER conversion_test_user WITH NOCREATEDB NOCREATEROLE;
|
||||
SET SESSION AUTHORIZATION conversion_test_user;
|
||||
CREATE CONVERSION myconv FOR 'LATIN1' TO 'UTF8' FROM iso8859_1_to_utf8;
|
||||
--
|
||||
|
Reference in New Issue
Block a user