/*
 * call-seq:
 *    conn.tty()
 *
 * Returns the connected pgtty. (Obsolete)
 */
static VALUE
pgconn_tty(VALUE self)
{
    char *tty = PQtty(get_pgconn(self));
    if (!tty) return Qnil;
    return rb_tainted_str_new2(tty);
}