/*
 * call-seq:
 *    conn.host()
 *
 * Returns the connected server name.
 */
static VALUE
pgconn_host(VALUE self)
{
        char *host = PQhost(get_pgconn(self));
        if (!host) return Qnil;
        return rb_tainted_str_new2(host);
}