alter user test set default_transaction_read_only=on;
grant all on database crm_db to test;
grant select on all tables in schema public to test; // 起作用的是這句 要進入crm_db 操作,在那個db環境執行就授哪個db的權
删除前撤銷
revoke all on database crm_prod_myl from test;
revoke select on all tables in schema public from test;