mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Reserve the "pg_" namespace for roles
This will prevent users from creating roles which begin with "pg_" and will check for those roles before allowing an upgrade using pg_upgrade. This will allow for default roles to be provided at initdb time. Reviews by José Luis Tallón and Robert Haas
This commit is contained in:
@ -429,7 +429,7 @@ exec_command(const char *cmd,
|
||||
break;
|
||||
case 'g':
|
||||
/* no longer distinct from \du */
|
||||
success = describeRoles(pattern, show_verbose);
|
||||
success = describeRoles(pattern, show_verbose, show_system);
|
||||
break;
|
||||
case 'l':
|
||||
success = do_lo_list();
|
||||
@ -474,7 +474,7 @@ exec_command(const char *cmd,
|
||||
success = PSQL_CMD_UNKNOWN;
|
||||
break;
|
||||
case 'u':
|
||||
success = describeRoles(pattern, show_verbose);
|
||||
success = describeRoles(pattern, show_verbose, show_system);
|
||||
break;
|
||||
case 'F': /* text search subsystem */
|
||||
switch (cmd[2])
|
||||
|
Reference in New Issue
Block a user