protected function getConnectionDescription() {
        $options = $this->options;

        if (is_resource($this->hConnection)) {
            $host        = pg_host($this->hConnection);
            $port        = pg_port($this->hConnection);
            $db          = pg_dbname($this->hConnection);
            $path        = $this->getSchemaSearchPath();
            $description = $host.':'.$port.'/'.$db.' (schema search path: '.$path.')';
        }
        else {
            if      (isset($options['hostaddr'])) $host = $options['hostaddr'];
            else if (isset($options['host'    ])) $host = $options['host'    ];
            else                                  $host = '';

            if (isset($options['port'])) $port = ':'.$options['port'];
            else                         $port = '';

            if      (isset($options['dbname'])) $db = $options['dbname'];
            else if (isset($options['user'  ])) $db = $options['user'  ];
            else                                $db = '';

            $description = $host.$port.'/'.$db;
        }
        return $description;
    }