Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6c361d3

Browse files
committed
Doc: specify aclitem syntax more clearly.
The previous wording here relied solely on an example to explain aclitem output format. Add an actual syntax synopsis and explanation of the elements to make it clearer. David Johnston and Tom Lane, per gripe from Eugen Konkov. Discussion: https://postgr.es/m/170326116972.1876499.18357820037829248593@wrigleys.postgresql.org
1 parent 3f1fd41 commit 6c361d3

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

doc/src/sgml/ddl.sgml

+10-3
Original file line numberDiff line numberDiff line change
@@ -2318,9 +2318,16 @@ REVOKE ALL ON accounts FROM PUBLIC;
23182318
<primary><type>aclitem</type></primary>
23192319
</indexterm>
23202320
The privileges that have been granted for a particular object are
2321-
displayed as a list of <type>aclitem</type> entries, where each
2322-
<type>aclitem</type> describes the permissions of one grantee that
2323-
have been granted by a particular grantor. For example,
2321+
displayed as a list of <type>aclitem</type> entries, each having the
2322+
format:
2323+
<synopsis>
2324+
<replaceable>grantee</replaceable><literal>=</literal><replaceable>privilege-abbreviation</replaceable><optional><literal>*</literal></optional>...<literal>/</literal><replaceable>grantor</replaceable>
2325+
</synopsis>
2326+
Each <type>aclitem</type> lists all the permissions of one grantee that
2327+
have been granted by a particular grantor. Specific privileges are
2328+
represented by one-letter abbreviations from
2329+
<xref linkend="privilege-abbrevs-table"/>, with <literal>*</literal>
2330+
appended if the privilege was granted with grant option. For example,
23242331
<literal>calvin=r*w/hobbes</literal> specifies that the role
23252332
<literal>calvin</literal> has the privilege
23262333
<literal>SELECT</literal> (<literal>r</literal>) with grant option

0 commit comments

Comments
 (0)