- MySQL25
- interview17
- python12
- java11
- ECS10
- Linux10
- nowcoder9
- git6
- go6
- spring6
- Computer Base6
- wsl5
- postgresql4
- Intro4
- 源码分析4
- computer tower4
- Logging Framework3
- c3
- Environment setup3
- redis2
- 架构2
- docker2
- c++2
- milvus2
- wechat2
- MySQL查询深入优化2
- architect1
- Tools1
- icon1
- markdown1
- docker compose1
- Nginx1
- k8s1
- ssh1
- springboot1
- Design Patterns1
- Term1
- CLion1
- windows1
- chocolatey1
- Blog1
- vue1
- trouble shooting1
前言
以下命令中[]表示可选项,
角色/用户
在postgres13中,用户和角色共用一张表,用户和角色的关系通过rolcanlogin区分,能LOGIN的是user,不能LOGIN的是role(目前来看,不保准后面会有特例)。
参考
https://www.postgresql.org/docs/15/sql-alterrole.html
About 6 min
前言
参考
Less than 1 minute
与MySQL不同的是,postgresql多了一层schema。
其关系如下

权限校验
peer
参考:https://www.postgresql.org/docs/13/auth-peer.html postgresql默认使用peer进行权限校验,默认会取当前操作系统用户的name作为登录用户
Less than 1 minute
