/** * Parse configuration array into options for PDO constructor. * * @throws Horde_Db_Exception * @return array [dsn, username, password] */ protected function _parseConfig() { $this->_config['adapter'] = 'pgsql'; // PDO for PostgreSQL does not accept a socket argument // in the connection string; the location can be set via the // "host" argument instead. if (!empty($this->_config['socket'])) { $this->_config['host'] = $this->_config['socket']; unset($this->_config['socket']); } return parent::_parseConfig(); }