mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +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:
@ -1264,8 +1264,8 @@ psql_completion(const char *text, int start, int end)
|
||||
{
|
||||
static const char *const list_ALTERUSER[] =
|
||||
{"BYPASSRLS", "CONNECTION LIMIT", "CREATEDB", "CREATEROLE",
|
||||
"CREATEUSER", "ENCRYPTED", "INHERIT", "LOGIN", "NOBYPASSRLS",
|
||||
"NOCREATEDB", "NOCREATEROLE", "NOCREATEUSER", "NOINHERIT",
|
||||
"ENCRYPTED", "INHERIT", "LOGIN", "NOBYPASSRLS",
|
||||
"NOCREATEDB", "NOCREATEROLE", "NOINHERIT",
|
||||
"NOLOGIN", "NOREPLICATION", "NOSUPERUSER", "PASSWORD", "RENAME TO",
|
||||
"REPLICATION", "RESET", "SET", "SUPERUSER", "UNENCRYPTED",
|
||||
"VALID UNTIL", "WITH", NULL};
|
||||
@ -1282,8 +1282,8 @@ psql_completion(const char *text, int start, int end)
|
||||
/* Similar to the above, but don't complete "WITH" again. */
|
||||
static const char *const list_ALTERUSER_WITH[] =
|
||||
{"BYPASSRLS", "CONNECTION LIMIT", "CREATEDB", "CREATEROLE",
|
||||
"CREATEUSER", "ENCRYPTED", "INHERIT", "LOGIN", "NOBYPASSRLS",
|
||||
"NOCREATEDB", "NOCREATEROLE", "NOCREATEUSER", "NOINHERIT",
|
||||
"ENCRYPTED", "INHERIT", "LOGIN", "NOBYPASSRLS",
|
||||
"NOCREATEDB", "NOCREATEROLE", "NOINHERIT",
|
||||
"NOLOGIN", "NOREPLICATION", "NOSUPERUSER", "PASSWORD", "RENAME TO",
|
||||
"REPLICATION", "RESET", "SET", "SUPERUSER", "UNENCRYPTED",
|
||||
"VALID UNTIL", NULL};
|
||||
@ -2671,8 +2671,8 @@ psql_completion(const char *text, int start, int end)
|
||||
{
|
||||
static const char *const list_CREATEROLE[] =
|
||||
{"ADMIN", "BYPASSRLS", "CONNECTION LIMIT", "CREATEDB", "CREATEROLE",
|
||||
"CREATEUSER", "ENCRYPTED", "IN", "INHERIT", "LOGIN", "NOBYPASSRLS",
|
||||
"NOCREATEDB", "NOCREATEROLE", "NOCREATEUSER", "NOINHERIT",
|
||||
"ENCRYPTED", "IN", "INHERIT", "LOGIN", "NOBYPASSRLS",
|
||||
"NOCREATEDB", "NOCREATEROLE", "NOINHERIT",
|
||||
"NOLOGIN", "NOREPLICATION", "NOSUPERUSER", "PASSWORD",
|
||||
"REPLICATION", "ROLE", "SUPERUSER", "SYSID", "UNENCRYPTED",
|
||||
"VALID UNTIL", "WITH", NULL};
|
||||
@ -2690,8 +2690,8 @@ psql_completion(const char *text, int start, int end)
|
||||
/* Similar to the above, but don't complete "WITH" again. */
|
||||
static const char *const list_CREATEROLE_WITH[] =
|
||||
{"ADMIN", "BYPASSRLS", "CONNECTION LIMIT", "CREATEDB", "CREATEROLE",
|
||||
"CREATEUSER", "ENCRYPTED", "IN", "INHERIT", "LOGIN", "NOBYPASSRLS",
|
||||
"NOCREATEDB", "NOCREATEROLE", "NOCREATEUSER", "NOINHERIT",
|
||||
"ENCRYPTED", "IN", "INHERIT", "LOGIN", "NOBYPASSRLS",
|
||||
"NOCREATEDB", "NOCREATEROLE", "NOINHERIT",
|
||||
"NOLOGIN", "NOREPLICATION", "NOSUPERUSER", "PASSWORD",
|
||||
"REPLICATION", "ROLE", "SUPERUSER", "SYSID", "UNENCRYPTED",
|
||||
"VALID UNTIL", NULL};
|
||||
|
Reference in New Issue
Block a user