<commit_before>-- Delete and update tracking

--TODO: Remove all old indizes
CREATE OR REPLACE FUNCTION drop_osm_delete_indizes() returns VOID
AS $$
BEGIN
    DROP INDEX IF EXISTS osm_delete_geom;
    DROP INDEX IF EXISTS osm_delete_geom_geohash;
END;
$$ language plpgsql;<commit_msg>Implement drop delete indizes for all delete tables<commit_after>CREATE OR REPLACE FUNCTION drop_osm_delete_index(table_name TEXT) returns VOID
AS $$
BEGIN
    EXECUTE format('DROP INDEX IF EXISTS %I', table_name || '_geom');
    EXECUTE format('DROP INDEX IF EXISTS %I', table_name || '_geom_geohash');
END;
$$ language plpgsql;


CREATE OR REPLACE FUNCTION drop_osm_delete_indizes() RETURNS VOID AS $$
BEGIN
    PERFORM drop_osm_delete_index(table_name)
    FROM osm_tables_delete;
END;
$$ language plpgsql;
{'fraction_non_alphanumeric': 0.07818411097099622, 'fraction_numerical': 0.0, 'mean_word_length': 5.508196721311475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7432173', 'n_tokens_mistral': 287, 'n_tokens_neox': 270, 'n_words': 83}