postgresql 新创建的库和表授权命令
作者:互联网
1. postgresql 新创建的库和表授权命令
*/20 * * * * /usr/bin/psql -d tenant_1011046 -q -t -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO liujunfan;" */20 * * * * /usr/bin/psql -d tenant_1011046 -q -t -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO caoxingquan;" */20 * * * * /usr/bin/psql -d tenant_1011046 -q -t -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO gukaiwei;" */20 * * * * /usr/bin/psql -d tenant_1011046 -q -t -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO huangpeisi;" */20 * * * * /usr/bin/psql -d tenant_1011046 -q -t -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO huangrixiong;" */20 * * * * /usr/bin/psql -d tenant_1011046 -q -t -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO liujiahao;" */20 * * * * /usr/bin/psql -d tenant_1011046 -q -t -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO ouyuanhui;" */20 * * * * /usr/bin/psql -d tenant_1011046 -q -t -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO liujiahao;" */20 * * * * /usr/bin/psql -d tenant_1011046 -q -t -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO yebowei;" */20 * * * * /usr/bin/psql -d tenant_1011046 -q -t -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO xiejun;"
标签:tenant,bin,postgresql,库和表,usr,新创建,20,SELECT,SCHEMA 来源: https://www.cnblogs.com/hixiaowei/p/15109401.html