基于postgres数据库:
查看连接数:
select count(1) from pg_stat_activity;
查看最大连接数值:
show max_connections;
查看保留连接数:
show superuser_reserved_connections;
基于postgres数据库:
查看连接数:
select count(1) from pg_stat_activity;
查看最大连接数值:
show max_connections;
查看保留连接数:
show superuser_reserved_connections;