Skip to content

[WIP] skip _all default partition for RANGE+TTL tables managed by pg_partman#2099

Open
WellMafra wants to merge 1 commit into
mainfrom
fix/no-all-partition-for-pg-partman
Open

[WIP] skip _all default partition for RANGE+TTL tables managed by pg_partman#2099
WellMafra wants to merge 1 commit into
mainfrom
fix/no-all-partition-for-pg-partman

Conversation

@WellMafra
Copy link
Copy Markdown
Contributor

@WellMafra WellMafra commented May 27, 2026

Companion to DataSQRL/cloud-compilation#939.

PostgresCreateTableDdlFactory skips the _all catch-all partition for RANGE+TTL tables — pg_partman owns those. HASH tables and RANGE tables without TTL are unchanged.

Snapshot updated: OrderUpdates_1 (RANGE, 30d TTL) no longer emits the _all DDL.

…artman

pg_partman owns partition lifecycle for RANGE-partitioned tables with TTL.
Generating and immediately dropping the _all catch-all in cloud-compilation
was a workaround; fix the root cause in the compiler instead.

HASH-partitioned tables and RANGE tables without TTL are unaffected.
@WellMafra WellMafra self-assigned this May 27, 2026
@WellMafra WellMafra changed the title fix: skip _all default partition for RANGE+TTL tables managed by pg_partman [WIP] skip _all default partition for RANGE+TTL tables managed by pg_partman May 27, 2026
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