查詢當前連接數:select count(1) from pg_stat_activity;
查詢最大連接數 show max_connections;
在postgresql.conf中設置:
max_connections = 1000
查詢當前連接數:select count(1) from pg_stat_activity;
查詢最大連接數 show max_connections;
在postgresql.conf中設置:
max_connections = 1000