               'WHERE ' || quote_ident(ref_field) || ' = ' || quote_literal(ref_field_id) ;
     END IF;
   END IF;  
+*/
   RETURN NEW;
 END;
 $$ language plpgsql;

      ref_field_id := OLD.record_id ; 
    ELSIF OLD.people_type = 'identifier' THEN
      SELECT record_id,referenced_relation INTO ref_field_id, ref_relation FROM identifications where id=OLD.record_id ;
      /* 'IF ref_field_id is Null, so the identification associated must have been deleted, we have nothing to do because an other trigger have done the job' */
      IF ref_field_id is NULL THEN
        RETURN OLD ;
      END IF ;      

            '              WHERE ' || quote_ident(field_to_update) || ' && ARRAY[' || NEW.people_ref::integer || '] ' || 
            '                AND ' || quote_ident(ref_field) || ' = ' || quote_literal(ref_field_id) ||
            '             )' INTO rec_exists ;
    IF rec_exists = TRUE THEN
      RETURN NEW ;
    END IF;
