【发布时间】:2020-12-25 12:15:43
【问题描述】:
如何将 Postgres 数据库中所有模式的所有表权限授予用户/角色?
以下命令仅授予特定架构而不是整个数据库。
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA schema_name TO username;
例如,
数据库:测试 Schema : schema1, schema2 内部测试 表:schema1.table1,schema1.table2,schema2.table1,schema2.table2
如何为在数据库中找到的所有模式中找到的所有表提供所有表权限。
【问题讨论】:
标签: postgresql