lo_close (PGconn)

    /*
     * call-seq:
     *    conn.lo_close( lo_desc ) -> nil
     *
     * Closes the postgres large object of _lo_desc_.
     */
    static VALUE
    pgconn_loclose(VALUE self, VALUE in_lo_desc)
    {
            PGconn *conn = get_pgconn(self);
            int lo_desc = NUM2INT(in_lo_desc);

            if(lo_unlink(conn,lo_desc) < 0)
                    rb_raise(rb_ePGError,"lo_close failed");

            return Qnil;
    }