diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index c8268222af..5fbaacc214 100644 --- a/doc/src/sgml/ddl.sgml +++ b/doc/src/sgml/ddl.sgml @@ -1509,6 +1509,192 @@ REVOKE ALL ON accounts FROM PUBLIC; privilege. For details see the and reference pages. + + + shows how privileges are displayed + by aclitem functions described + in . + summarizes the + default privileges granted to all object's types with + their associated backslash commands. + + + + Privileges' one-letter display + + + + PRIVILEGE + Letter + Objects + + + + + SELECT + r (Read) + + LARGE OBJECT, + TABLE, VIEW... + + + + INSERT + a (Append) + TABLE, VIEW... + + + UPDATE + w (Write) + + LARGE OBJECT, + TABLE, VIEW... + + + + DELETE + d + TABLE, VIEW... + + + TRUNCATE + D (Delete) + TABLE, VIEW... + + + REFERENCES + x + TABLE + + + TRIGGER + t + TABLE, VIEW... + + + CREATE + C + + DATABASE, SCHEMA, + TABLESPACE + + + + CONNECT + c + DATABASE + + + TEMPORARY + T + DATABASE + + + EXECUTE + X (eXecute) + FUNCTION, PROCEDURE + + + USAGE + U + + DOMAIN, FOREIGN ..., + LANGUAGE, SCHEMA, + SEQUENCE, TYPE + + + + +
+ + + Default access privileges per object's type, as shown by <command>psql</command> + + + + Object's type + psql \-command + All Privileges + Default PUBLIC Privileges + + + + + DATABASE + \l + CTc + Tc + + + DOMAIN + \dD+ + U + U + + + FUNCTION or PROCEDURE + \df+ + X + X + + + FOREIGN DATA WRAPPER + \dew+ + U + + + + FOREIGN SERVER + \des+ + U + + + + LANGUAGE + \dL+ + U + U + + + LARGE OBJECT + + rw + + + + SCHEMA + \dn+ + UC + + + + SEQUENCE + \dp + rwU + + + + TABLE, VIEW... + \dp + arwdDxt + + + + TABLESPACE + \db+ + C + + + + TYPE + \dT+ + U + U + + + +
+ diff --git a/doc/src/sgml/ref/grant.sgml b/doc/src/sgml/ref/grant.sgml index ff64c7a3ba..bf643bfe92 100644 --- a/doc/src/sgml/ref/grant.sgml +++ b/doc/src/sgml/ref/grant.sgml @@ -533,7 +533,8 @@ GRANT role_name [, ...] TO - The entries shown by \dp are interpreted thus: + The entries shown by psql backslash-commands, + like \dp, are interpreted thus: rolename=xxxx -- privileges granted to a role =xxxx -- privileges granted to PUBLIC