protected function renderDsnForPgsql()
    {
        $h = $this->getHost();
        $p = $this->getPort();
        $b = $this->getDbName();
        return self::DRIVER_PGSQL . $this->renderDsnParts([
                    'host' => !empty($h) ? $h : NULL,
                    'port' => !empty($p) ? $p : NULL,
                    'dbname' => !empty($b) ? $b : NULL,
                    'user' => $this->getUsername(),
                    'password' => $this->getPassword(),
                        ], ' ');
    }