The current number of PG connections is recorded in the pg_stat_activity table
查看当前连接数:
select count(1) from pg_stat_activity;
查看最大连接数:
show max_connections;
在配置文件 postgresql.conf 修改最大连接数为 100:
max_connections = 100
[Java interview questions and answers] sorting recommendations
- Basics and Grammar
- set
- network programming
- Concurrent programming
- Web
- Safety
- Design Patterns
- frame
- Algorithms and data structures
- abnormal
- File parsing and generation
- Linux
- MySQL
- Oracle
- Redis
- Dubbo