cmd 登录
如果显示psql未识别的命令,找到postgresql的bin路径运行cmd
psql -h localhost -U postgres
查看当前连接数
select count(*) , usename from pg_stat_activity group by usename;
参考原文:https://blog.csdn.net/jinjianghai/article/details/88736900?utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EsearchFromBaidu%7Edefault-1.pc_relevant_baidujshouduan&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EsearchFromBaidu%7Edefault-1.pc_relevant_baidujshouduan