我正在Linux上运行PostgreSQL 9.3.2。
我有一个名为"data_scientist"的组角色,并且有权限访问一个特定的(已经填充好的)模式,如下所示:
grant usage on schema schemaname to data_scientist;
grant select, references, trigger
on all tables in schema schemaname
to data_scientist;
这解决了数据科学家使用过去表格的问题。对于未来的表格,我添加了
alter default privileges in schema schemaname
grant select, references on tables
to data_scientist;
然而,每当添加新表时,其他数据科学家的权限在新表上失效。