PG 当前的连接数被记录在 pg_stat_activity 表里
查看当前连接数:
select count(1) from pg_stat_activity;
查看最大连接数:
show max_connections;
在配置文件 postgresql.conf 修改最大连接数为 100:
max_connections = 100
PG 当前的连接数被记录在 pg_stat_activity 表里
查看当前连接数:
select count(1) from pg_stat_activity;
查看最大连接数:
show max_connections;
在配置文件 postgresql.conf 修改最大连接数为 100:
max_connections = 100