【发布时间】:2013-10-19 00:27:09
【问题描述】:
目前我正在使用它来授予权限:
grant select on all tables in schema public to <user_name>;
alter default privileges in schema public grant select on tables to <user_name>;
根据documentation,第二条语句应该已经解决了问题。但是,当将新表添加到公共架构时,它不会自动授予 user_name 权限。
我正在使用此用户 (user_name) 将数据复制到另一个数据库。
【问题讨论】:
-
你可能想看看How to GRANT SELECT by default to B, on tables created by A?:this solution 也使用默认权限解决了它。
标签: postgresql grant database-permissions