lo_unlink (PGconn)

    /*
     * call-seq:
     *    conn.lo_unlink( oid ) -> nil
     *
     * Unlinks (deletes) the postgres large object of _oid_.
     */
    static VALUE
    pgconn_lounlink(VALUE self, VALUE in_oid)
    {
            PGconn *conn = get_pgconn(self);
            int oid = NUM2INT(in_oid);

            if (oid < 0)
                    rb_raise(rb_ePGError, "invalid oid %d",oid);

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

            return Qnil;
    }