mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Create an ALTER DEFAULT PRIVILEGES command, which allows users to adjust
the privileges that will be applied to subsequently-created objects. Such adjustments are always per owning role, and can be restricted to objects created in particular schemas too. A notable benefit is that users can override the traditional default privilege settings, eg, the PUBLIC EXECUTE privilege traditionally granted by default for functions. Petr Jelinek
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.229 2009/08/11 12:02:58 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.230 2009/10/05 19:24:34 tgl Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@@ -978,6 +978,29 @@ testdb=>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
<varlistentry>
|
||||
<term><literal>\ddp [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Lists default access privilege settings. An entry is shown for
|
||||
each role (and schema, if applicable) for which the default
|
||||
privilege settings have been changed from the built-in defaults.
|
||||
If <replaceable class="parameter">pattern</replaceable> is
|
||||
specified, only entries whose role name or schema name matches
|
||||
the pattern are listed.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The <xref linkend="sql-alterdefaultprivileges"
|
||||
endterm="sql-alterdefaultprivileges-title"> command is used to set
|
||||
default access privileges. The meaning of the
|
||||
privilege display is explained under
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title">.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
<varlistentry>
|
||||
<term><literal>\dD[S] [ <replaceable class="parameter">pattern</replaceable> ]</literal></term>
|
||||
<listitem>
|
||||
@@ -1142,8 +1165,8 @@ testdb=>
|
||||
class="parameter">pattern</replaceable> is specified, only
|
||||
those roles whose names match the pattern are listed.
|
||||
(This command is now effectively the same as <literal>\du</literal>).
|
||||
If the form <literal>\dg+</literal> is used, additional information
|
||||
is shown about each role, including the comment for each role.
|
||||
If the form <literal>\dg+</literal> is used, additional information
|
||||
is shown about each role, including the comment for each role.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -1235,7 +1258,9 @@ testdb=>
|
||||
<para>
|
||||
The <xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">
|
||||
commands are used to set access privileges.
|
||||
commands are used to set access privileges. The meaning of the
|
||||
privilege display is explained under
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title">.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -2045,12 +2070,6 @@ lo_import 152801
|
||||
specified, only tables,views and sequences whose names match the pattern are listed.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The <xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">
|
||||
commands are used to set access privileges.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
This is an alias for <command>\dp</command> (<quote>display
|
||||
privileges</quote>).
|
||||
|
||||
Reference in New Issue
Block a user