postgresql - `模式列表`中的`访问权限`

postgresql - `Access priviledges` in `List of schemas`

我 运行 \dn 在 PostgreSQL 实例上,想知道 Access privileges 列的内容到底显示了什么?

postgres=# \dn+
                              List of schemas
    Name     |    Owner    |  Access privileges   |      Description
-------------+-------------+----------------------+------------------------
 keycloap    | keycloap    |                      |
 novebackend | novebackend |                      |
 public      | postgres    | postgres=UC/postgres+| standard public schema
             |             | =UC/postgres         |

这有据可查in the manual

Table 5.1 shows the one-letter abbreviations that are used for these privilege types in ACL (Access Control List) values. You will see these letters in the output of the psql commands listed below, or when looking at ACL columns of system catalogs.

+============+==============+================================================================================+
| Privilege  | Abbreviation | Applicable Object Types                                                        |
+============+==============+================================================================================+
| SELECT     | r (“read”)   | LARGE OBJECT, SEQUENCE, TABLE (and table-like objects), table column           |
| INSERT     | a (“append”) | TABLE, table column                                                            |
| UPDATE     | w (“write”)  | LARGE OBJECT, SEQUENCE, TABLE, table column                                    |
| DELETE     | d            | TABLE                                                                          |
| TRUNCATE   | D            | TABLE                                                                          |
| REFERENCES | x            | TABLE, table column                                                            |
| TRIGGER    | t            | TABLE                                                                          |
| CREATE     | C            | DATABASE, SCHEMA, TABLESPACE                                                   |
| CONNECT    | c            | DATABASE                                                                       |
| TEMPORARY  | T            | DATABASE                                                                       |
| EXECUTE    | X            | FUNCTION, PROCEDURE                                                            |
| USAGE      | U            | DOMAIN, FOREIGN DATA WRAPPER, FOREIGN SERVER, LANGUAGE, SCHEMA, SEQUENCE, TYPE |
+============+==============+================================================================================+

然后再往下:

[...] where each aclitem describes the permissions of one grantee that have been granted by a particular grantor
For example, calvin=r*w/hobbes specifies that the role calvin has the privilege SELECT (r) with grant option (*) as well as the non-grantable privilege UPDATE (w), both granted by the role hobbes