小编Cei*_*ili的帖子

架构公共所有者的更改取决于我登录的人员?

$ psql postgres

postgres=# \dn
        List of schemas
        Name        |  Owner
--------------------+----------
 information_schema | postgres
 pg_catalog         | postgres
 pg_toast           | postgres
 pg_toast_temp_1    | postgres
 public             | student
(5 rows)
Run Code Online (Sandbox Code Playgroud)

当我使用用户postgres登录psql时,它显示schema public由用户student拥有.但是,当我与用户学生登录psql时:

$ psql student

student=> \dn
        List of schemas
        Name        |  Owner
--------------------+----------
 information_schema | postgres
 pg_catalog         | postgres
 pg_toast           | postgres
 pg_toast_temp_1    | postgres
 public             | postgres
(5 rows)
Run Code Online (Sandbox Code Playgroud)

它表明schema public由用户postgres拥有.

如果具有此权限的用户认为已经完成,那么如何将模式公共所有权转让给用户学生?

postgresql privileges psql

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

postgresql ×1

privileges ×1

psql ×1