PDOException thrown within exception handler: SQLSTATE[08006] [7] FATAL: remaining connection slots are reserved for non-replication superuser connections. Trace: #0 [internal function]: PDO->__construct('pgsql:dbname=ba...', 'pgsql', 'bafus13', Array) #1 [internal function]: ReflectionClass->newInstance('pgsql:dbname=ba...', 'pgsql', 'bafus13', Array) #2 /var/www/lib/km/Km.php(90): call_user_func_array(Array, Array) #3 /var/www/lib/km/km/Proxy.php(98): Km::create('PDO', Array) #4 [internal function]: km\Proxy->createObject() #5 /var/www/lib/km/km/Proxy.php(104): call_user_func_array(Array, Array) #6 /var/www/lib/km/km/Proxy.php(77): km\Proxy->getObject() #7 /var/www/lib/km/km/db/Select.php(304): km\Proxy->__call('prepare', Array) #8 /var/www/lib/km/km/db/Select.php(304): km\Proxy->prepare('SELECT person_p...') #9 /var/www/lib/km/km/db/Select.php(319): km\db\Select->query(NULL) #10 /var/www/bafus/lib/user/Guest.php(131): km\db\Select->fetchOne() #11 /var/www/bafus/lib/user/User.php(120): user\Guest->createPrefs() #12 /var/www/bafus/lib/user/Guest.php(119): user\User->getPrefs() #13 /var/www/bafus/lib/user/User.php(107): user\Guest->getContactInfo() #14 /var/www/bafus/lib/controller/BaseController.php(196): user\User->toArray() #15 /var/www/bafus/lib/xhandler/AnyExceptionHandler.php(16): controller\BaseController->run() #16 /var/www/lib/km/Km.php(358): xhandler\AnyExceptionHandler->handle(Object(PDOException)) #17 [internal function]: Km::exceptionHandler(Object(PDOException)) #18 {main}