修改postgresql中的最大连接数February 13, 2023 · One min readorangeprogrammer on jvm platformpostgresql默认连接数量有的时候可能会出现不够用的情况, 这时就需要修改postgresql的最大连接数 解决方案 通过ALTER SYSTEM修改 ALTER SYSTEM SET max_connections = 1000; 备注 重置max_connections ALTER SYSTEM RESET max_connections; 查看max_connections SHOW max_connections; 参考 Query a parameter (postgresql.conf setting) like "max_connections" How to increase max_connection in the official PostgreSQL Docker image Tuning Postgres Max Connections