Skip to content

Feature upgrade: auto-clean catalog & bug fixes - #23

Merged
mbakli merged 6 commits into
mainfrom
feature_upgrade
Jul 5, 2026
Merged

Feature upgrade: auto-clean catalog & bug fixes#23
mbakli merged 6 commits into
mainfrom
feature_upgrade

Conversation

@mbakli

@mbakli mbakli commented Jul 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

mbakli added 6 commits July 4, 2026 12:29
DROP TABLE ... CASCADE only removes the table and its Citus shards; it
has no dependency link to this extension's own bookkeeping in
pg_dist_spatiotemporal_tables/pg_dist_spatiotemporal_tiles, so those
rows were silently orphaned. Add an event trigger on sql_drop that
removes the matching catalog rows automatically, guarding against the
case where the extension itself (and its catalog tables) is being
dropped in the same command.
The tile-size binary search only exits on an exact match against the
per-tile target count. When the target rounds down to 0 (few rows
relative to the requested tile count) or the split point plateaus at
floating-point precision before matching exactly, the loop never
converges and hangs indefinitely. Cap it at 100 rounds and settle for
the current best split point instead.
@mbakli
mbakli merged commit fbfa1d2 into main Jul 5, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant