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

Support UPDATE/DELETE on compressed hypertables. #5339

Merged
merged 1 commit into from Apr 5, 2023

Commits on Apr 5, 2023

  1. Support UPDATE/DELETE on compressed hypertables.

    This patch does following:
    
    1. Executor changes to parse qual ExprState to check if SEGMENTBY
       column is specified in WHERE clause.
    2. Based on step 1, we build scan keys.
    3. Executor changes to do heapscan on compressed chunk based on
       scan keys and move only those rows which match the WHERE clause
       to staging area aka uncompressed chunk.
    4. Mark affected chunk as partially compressed.
    5. Perform regular UPDATE/DELETE operations on staging area.
    6. Since there is no Custom Scan (HypertableModify) node for
       UPDATE/DELETE operations on PG versions < 14, we don't support this
       feature on PG12 and PG13.
    sb230132 committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    07d48d7 View commit details
    Browse the repository at this point in the history