时间:2021-07-01 10:21:17 帮助过:21人阅读
postgresql创建只读账号:
# su - postgres
$ psql
# \c icinga2;
# create user aa with password ‘xxx‘;
# grant select on all tables in schema public to aa; (对现有表生效)
# alter default privileges in schema public grant select on tables to icuser_ro; (对未来的新加表生效)
#\q
本文出自 “linux” 博客,请务必保留此出处http://yangzhiming.blog.51cto.com/4849999/1978480
postgresql创建只读账号
标签:postgresql