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

Relax compressed hypertable schema change restrictions #7389

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

svenklemm
Copy link
Member

Instead of disallowing certain operations when a hypertable has compression enabled only block when there are also compressed chunks present.

Instead of disallowing certain operations when a hypertable has
compression enabled only block when there are also compressed chunks
present.
@svenklemm svenklemm self-assigned this Oct 24, 2024
@svenklemm svenklemm added this to the TimescaleDB 2.18.0 milestone Oct 24, 2024
@svenklemm svenklemm changed the title Relax compressed chunk schema change restrictions Relax compressed hypertable schema change restrictions Oct 24, 2024
@@ -239,13 +239,33 @@ check_continuous_agg_alter_table_allowed(Hypertable *ht, AlterTableStmt *stmt)
}
}

static bool
hypertable_has_compressed_chunks(Hypertable *ht)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there already a function for this: ts_chunk_exists_with_compression? Or is it doing something else. Seems a bit unnecessary to build all chunks just to check for the occurrence of one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants