mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +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:
@ -1365,13 +1365,15 @@ testdb=>
|
||||
|
||||
|
||||
<varlistentry>
|
||||
<term><literal>\dg[+] [ <link linkend="APP-PSQL-patterns"><replaceable class="parameter">pattern</replaceable></link> ]</literal></term>
|
||||
<term><literal>\dg[S+] [ <link linkend="APP-PSQL-patterns"><replaceable class="parameter">pattern</replaceable></link> ]</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Lists database roles.
|
||||
(Since the concepts of <quote>users</> and <quote>groups</> have been
|
||||
unified into <quote>roles</>, this command is now equivalent to
|
||||
<literal>\du</literal>.)
|
||||
By default, only user-created roles are shown; supply the
|
||||
<literal>S</literal> modifier to include system roles.
|
||||
If <replaceable class="parameter">pattern</replaceable> is specified,
|
||||
only those roles whose names match the pattern are listed.
|
||||
If the form <literal>\dg+</literal> is used, additional information
|
||||
@ -1525,13 +1527,15 @@ testdb=>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><literal>\du[+] [ <link linkend="APP-PSQL-patterns"><replaceable class="parameter">pattern</replaceable></link> ]</literal></term>
|
||||
<term><literal>\du[S+] [ <link linkend="APP-PSQL-patterns"><replaceable class="parameter">pattern</replaceable></link> ]</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Lists database roles.
|
||||
(Since the concepts of <quote>users</> and <quote>groups</> have been
|
||||
unified into <quote>roles</>, this command is now equivalent to
|
||||
<literal>\dg</literal>.)
|
||||
By default, only user-created roles are shown; supply the
|
||||
<literal>S</literal> modifier to include system roles.
|
||||
If <replaceable class="parameter">pattern</replaceable> is specified,
|
||||
only those roles whose names match the pattern are listed.
|
||||
If the form <literal>\du+</literal> is used, additional information
|
||||
|
Reference in New Issue
Block a user