基於postgres數據庫:
查看連接數:
select count(1) from pg_stat_activity;
查看最大連接數值:
show max_connections;
查看保留連接數:
show superuser_reserved_connections;
查看連接的客戶端信息:
SELECT * FROM pg_stat_activity;
基於postgres數據庫:
查看連接數:
select count(1) from pg_stat_activity;
查看最大連接數值:
show max_connections;
查看保留連接數:
show superuser_reserved_connections;
查看連接的客戶端信息:
SELECT * FROM pg_stat_activity;
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。