4

我无法从 PSQL 中的数据库中进行选择。这是我感兴趣的表的输出。有人可以为我破译访问权限吗?我知道这arwdRxt意味着追加、读取、写入等......语法让我感到困惑,访问权限列中的斜杠和等号到底是什么意思?如果我的问题不清楚,请告诉我。

                    Access privileges
 schema |     name      | type |    access privileges    
--------+---------------+------+-------------------------
 public | table_name    | view | amazonuser=arwdRxt/amazonuser+
        |               |      | readonly=r/amazonuser
4

2 回答 2

8

它在docs中有详细描述。= 之前的东西是谁拥有这些权限,/ 之后的东西是谁授予了这些权限。

于 2013-11-11T17:58:07.243 回答
2

文档

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
于 2021-04-09T07:54:50.603 回答