时间:2021-07-01 10:21:17 帮助过:4人阅读
设置默认,对于未创建的表直接默认赋予只读权限
alter default privileges for user $db_owner in schema public grant select on tables to $read_only_user;
pubic这个schema是默认的schema
测试建表语句
create table t2 ( id serial, name varchar(64) );
pgsql 9.4修改数据库只读
标签: