postgres数据库查看用户权限
来源:互联网 发布:多个表格数据求和 编辑:程序博客网 时间:2024/05/21 09:41
1、查看某用户的表权限
select * from information_schema.table_privileges where grantee='user_name';
2、查看usage权限表
select * from information_schema.usage_privileges where grantee='user_name';
3、查看存储过程函数相关权限表
select * from information_schema.routine_privileges where grantee='user_name';
4、建用户授权
create user user_name;
alter user user_name with password '';
alter user user_name with CONNECTION LIMIT 20;#连接数限制
select * from information_schema.table_privileges where grantee='user_name';
2、查看usage权限表
select * from information_schema.usage_privileges where grantee='user_name';
3、查看存储过程函数相关权限表
select * from information_schema.routine_privileges where grantee='user_name';
4、建用户授权
create user user_name;
alter user user_name with password '';
alter user user_name with CONNECTION LIMIT 20;#连接数限制
阅读全文
0 0
- postgres数据库查看用户权限
- 查看postgres数据库端口
- ORACLE数据库查看用户权限
- SQL Server:查看数据库用户权限
- mysql 和 postgres 查看数据库结构命令
- SQL Server数据库查看数据库用户权限
- postgres 数据库
- 查看用户权限
- 查看用户权限
- 查看用户权限
- SQL Server:查看数据库用户权限(SQL 2005)
- SQL Server:查看数据库用户权限(SQL 2008)
- 查看MYSQL数据库中所有用户以及单个用户权限
- SQL Server:查看数据库用户权限(SQL 2005)
- 阿里云rds postgres回收用户权限
- Postgres数据库安装
- JAVA连接postgres数据库
- postgres创建数据库(initdb)
- SpringMVC的搭建
- JAVASE入门---我对强转与多态的理解
- [C# 网络编程系列]专题五:TCP编程
- [Lintcode] #70 二叉树的层次遍历 II
- 嵌入式 uboot命令及内核启动参数
- postgres数据库查看用户权限
- C语言系列之指针类型内存分配模板
- Tomcat高性能调优方案详解
- java提高篇---LinkedList
- 简单算法——使用栈实现括号匹配检验
- 刘强东:死掉的创业公司,几乎都违背这 4 点最基本的经济常识
- H5是轻应用,也是一个流量中枢
- java提高篇-----HashMap
- initializer element is not a comply-time constant