在使用postgresql时,会报connection too many问题,导致拿不到连接数,在mysql中可以通过show process list来查看连接到数据库的client信息,那么在postgresql中使用什么命令来查看呢?
使用List-1中的命令
List-1
SELECT * from pg_stat_activity ;Reference(postgresql官方的邮件沟通列表) https://www.postgresql.org/message-id/200507011913.36840.erik.wasser@iquer.nethttps://ma.ttias.be/show-full-processlist-equivalent-of-mysql-for-postgresql/ ---来自腾讯云社区的---克虏伯
微信扫一扫打赏
支付宝扫一扫打赏