时间:2021-07-01 10:21:17 帮助过:23人阅读
select * from information_schema.table_privileges where grantee=‘用户名‘;
select * from information_schema.usage_privileges where grantee=‘用户名‘;
- admindb=> INSERT INTO authors (name) VALUES (‘Mo Yan‘);
- ERROR: permission denied for table authors
- admindb=# GRANT ALL PRIVILEGES ON TABLE authors TO admin;
- GRANT
- admindb=> INSERT INTO authors (name) VALUES (‘Mo Yan‘);
- ERROR: permission denied for sequence authors_id_seq
- admindb=# GRANT ALL PRIVILEGES ON SEQUENCE authors_id_seq TO admin; GRANT
Postgresql常用命令
标签:HERE pdb 权限 ble use 用户表 drop ati sch