【发布时间】:2018-07-18 05:08:58
【问题描述】:
我希望 RoleGroup 对表中的特定列具有某些特权……。roleGroup 不是 DB 所有者:
grant SELECT, INSERT ,UPDATE (colOne) on table schemaOne.tableOne
to roleGroup;
当我想要更改此列的默认权限(以包括未来的用户)时,我收到错误消息,说不能仅更改一列的默认权限:
alter default privileges for role DB_OWNER in schema schemaOne grant
select,insert,update(colOne) on table schemaOne.tableOne to
roleGroup;
这迫使我这样做:
Alter Default priviliges for role DB_OWNER in schema schemOne grant
select,insert,update to roleGroup ;
那么第一次资助有什么意义呢?!!还是我犯了一些错误?
【问题讨论】:
标签: sql postgresql