Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: sorry, too many clients already FATAL: sorry, too many clients already in /data/httpd/iw.laivas.lv/code/common/db_classes/CRSDb.php on line 27

Fatal error: Uncaught exception 'Exception' with message 'Database connection failed!' in /data/httpd/iw.laivas.lv/code/common/db_classes/CRSDb.php:28 Stack trace: #0 /data/httpd/iw.laivas.lv/code/common/db_classes/CRSDb.php(34): CRSDb::connect() #1 /data/httpd/iw.laivas.lv/code/common/db_classes/DbRecordSet.php(20): CRSDb::query('SELECT banner_i...') #2 /data/httpd/iw.laivas.lv/code/common/banner_classes/BannerEngine.php(51): DbRecordSet->select() #3 /data/httpd/www.laivas.lv/code/application.php(56): BannerEngine::echo_banner('A', 'temas', 'LV') #4 /data/httpd/www.laivas.lv/templates/header.php(81): banner('A', 'temas', 'LV') #5 /data/httpd/www.laivas.lv/error.php(3): include('/data/httpd/www...') #6 {main} thrown in /data/httpd/iw.laivas.lv/code/common/db_classes/CRSDb.php on line 28