Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove metadata when dropping chunk #6621

Commits on Feb 16, 2024

  1. Remove metadata when dropping chunk

    Historically we preserve chunk metadata because the old format of the
    Continuous Aggregate has the `chunk_id` column in the materialization
    hypertable so in order to don't have chunk ids left over there we just
    mark it as dropped when dropping chunks.
    
    In timescale#4269 we introduced a new Continuous Aggregate format that don't
    store the `chunk_id` in the materialization hypertable anymore so it's
    safe to also remove the metadata when dropping chunk and all associated
    Continuous Aggregates are in the new format.
    
    Also added a post-update SQL script to cleanup unnecessary dropped chunk
    metadata in our catalog.
    
    Closes timescale#6570
    fabriziomello committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    30920b4 View commit details
    Browse the repository at this point in the history