Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: sorry, too many clients already FATAL: sorry, too many clients already in /var/www/akvedukts2/code_classes/DBConnection.php on line 20

Fatal error: Uncaught exception 'B2B\DBException' with message 'Database connection failed.' in /var/www/akvedukts2/code_classes/DBConnection.php:22 Stack trace: #0 /var/www/akvedukts2/code_classes/application.php(65): B2B\DBConnection->__construct('akvedukts2', '127.0.0.1', 'postgres', '') #1 /var/www/akvedukts2/index.php(21): include('/var/www/akvedu...') #2 {main} thrown in /var/www/akvedukts2/code_classes/DBConnection.php on line 22