检查max_connection只是为了牢记当前值
SHOW max_connections;
更改最大连接值
ALTER SYSTEM SET max_connections TO '500';
重新启动PostgreSQL服务器