postgresql 连接查询

select min_val, max_val from pg_settings where name='max_connections';

SELECT * FROM pg_stat_activity;

SELECT COUNT(*) from pg_stat_activity;

show max_connections;
posted @ 2022-09-13 11:41  一只小羊  阅读(68)  评论(0编辑  收藏  举报