Postgresql常用命令汇总

来源:互联网 发布:淘宝商家支付宝限额 编辑:程序博客网 时间:2024/05/21 00:19
查询当前连接数
postgres=# select count(1) from pg_stat_activity;
查询最大连接数
postgres=# show max_connections;
查询超级用户的预留连接数
postgres=# show superuser_reserved_connections ;

原创粉丝点击