1、查询当前连接数:

select count(*) from pg_stat_activity;

 2、查询最大连接数

show max_connections;

3、修改最大连接数

SHOW config_file:查看postgresql.conf配置文件位置

然后修改配置文件中max_connections=1024

4、重启服务

service postgresql restart

或者:pg_ctl restart

 

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-10-30
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2021-08-15
  • 2022-12-23
  • 2021-09-03
  • 2021-07-10
  • 2021-10-13
相关资源
相似解决方案