anchor.diff:                          [ pivot_resource(Id, Ctx) || {Id,_Serial} <- Qs]
                   end,
               case z_db:transaction(F, Context) of
  -                {rollback, PivotError} -> ?LOG("Pivot error: ~p~n", [PivotError]);
  +                {rollback, PivotError} -> ?ERROR("Pivot error: ~p: ~p~n", [PivotError, Qs]);
                   L when is_list(L) -> delete_queue(Qs, Context)
               end
       end.
  
positive.code:     %        setweight(to_tsvector('pg_catalog.english', coalesce(new.desc_en,'')),  'D'); 
  
  
  %% @doc Fetch the date range from the record
  pivot_date(R) ->
      DateStart = proplists:get_value(date_start, R),
  
negative.code: 
      SqlArgs = ArgsD ++ [
          TsvIds,
          truncate(proplists:get_value(street, R), 120),
          truncate(proplists:get_value(city, R), 100),
          truncate(proplists:get_value(postcode, R), 30),
          truncate(proplists:get_value(state, R), 50),
          truncate(proplists:get_value(country, R), 80),
          truncate(proplists:get_value(name_first, R), 100),
          truncate(proplists:get_value(name_surname, R), 100),
          truncate(proplists:get_value(gender, R), 1),
          DateStart,
          DateEnd,
          truncate(get_pivot_title(R), 100),
          Id
      ],
      z_db:q(Sql, SqlArgs, Context),
  