postgres 授权用户表
GRANT UPDATE ON demo TO demo_role; --赋予demo_role demo表的update权限 GRANT SELECT ON ALL TABLES IN SCHEMA PUBLIC to demo_role; --赋予demo_role所有表的SELECT权限 GRANT ALL ON demo TO demo_role; --赋给用户所有权限 GRANT SELECT ON demo TO PUBLIC; --将SELECT权限赋给所有用户
GRANT SELECT,insert,update,delete,REFERENCES,trigger,TRUNCATE
ON ALL TABLES IN SCHEMA db_cas to zhts;