postgresql常用命令与查询
配置
修改最大连接数(Ubuntu, postgresql版本9.5)
postgresql配置文件 /etc/postgresql/9.5/main/postgresql.conf
1  | max_connections = 100(默认100, 修改后需重启postgres)  | 
常用命令
1  | -- 重启  | 
常用查询
1  | - 查看postgresql的连接数  | 
修改最大连接数(Ubuntu, postgresql版本9.5)
postgresql配置文件 /etc/postgresql/9.5/main/postgresql.conf
1  | max_connections = 100(默认100, 修改后需重启postgres)  | 
1  | -- 重启  | 
1  | - 查看postgresql的连接数  |