Increase the number of connections

  1. Run the command

sudo nano /etc/postgresql/11/main/postgresql.conf
  1. Press Ctrl+W, input max_conn and press Enter

  2. Change the value from 100 to 200

  3. Press Ctrl+O for saving, then Ctrl+X for escaping

  4. Restart PostgreSQL with the command:

sudo service postgresql restart