Catalog updates to support granular refresh - #10357
Merged
melihmutlu merged 1 commit intoJul 30, 2026
Merged
Conversation
|
@antekresic, @svenklemm: please review this pull request.
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
gayyappan
reviewed
Jul 29, 2026
gayyappan
reviewed
Jul 29, 2026
melihmutlu
force-pushed
the
cagg_granular_catalog_part2
branch
2 times, most recently
from
July 29, 2026 22:03
7a73b8f to
21a9842
Compare
gayyappan
reviewed
Jul 29, 2026
melihmutlu
force-pushed
the
cagg_granular_catalog_part2
branch
4 times, most recently
from
July 30, 2026 09:50
3bf4c01 to
3ece649
Compare
gayyappan
approved these changes
Jul 30, 2026
kpan2034
approved these changes
Jul 30, 2026
Following updates on two catalogs to support granular refresh: - Add seqnum column to cagg invalidation logs to both continuous_aggs_hypertable_invalidation_log and continuous_aggs_materialization_invalidation_log so invalidation entries can be matched up with granular trackings. NULL means the entry has no associated granular tracking. - Add granular_refresh_enabled to continuous_agg Add a granular_refresh_enabled flag (default FALSE) to the continuous_agg catalog table, marking caggs that opt into granular refresh. Also, this updates upgrade/downgrade tests to cover seqnum in invalidation log verifications. Removes FK on continuous_aggs_materialization_ranges to continuous_agg to isolate continuous_aggs_materialization_ranges as it's deprecated. Co-authored-by: gayyappan <gayathri@timescale.com>
melihmutlu
enabled auto-merge (squash)
July 30, 2026 21:56
auto-merge was automatically disabled
July 30, 2026 21:56
Head branch was modified
melihmutlu
force-pushed
the
cagg_granular_catalog_part2
branch
from
July 30, 2026 21:57
3ece649 to
c4d4539
Compare
melihmutlu
enabled auto-merge (squash)
July 30, 2026 22:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a nullable seqnum column to both continuous_aggs_hypertable_invalidation_log and continuous_aggs_materialization_invalidation_log so invalidation entries can be matched up with granular trackings. NULL means the entry has no associated granular tracking.
Also, add a granular_refresh_enabled flag (default FALSE) to the continuous_agg catalog table, marking caggs that opt into granular refresh.
Both catalogs require rebuild.