Closed fljdin closed 1 year ago
So you are going with the second solution, right?
I think this is fixed, right?
I was thinking about a quick control of missing range during partitions creation. But I don't see a range_agg
method in the documentation
range_agg
exists, but only from v14 on, I think.
I think my original complaint was about having a migrate
attribute on the subpartition
table, that it makes no sense to migrate some partitions, but not others. We don't have that now, so I have no more complaint.
I am not convinced that a migrate_partitioning
column could address this feature.
What if a user toggles migrate_partitioning
to on
and do not insert into (sub)partitions
staging tables?
A word in README could be enough or maybe examples in a future how-to documentation:
(sub)partitions
to transform a table to a partitioned table(sub)partitions
to transform a partitioned table to a simple table(sub)partitions
to fully rearrange partition schemeIf we want a control with range_agg
(next to v14), I thougth that it could be easy to find a unhandled range in partitions scheme, but converting text[]
to int8range
or daterange
depending on key colomn type is very tricky (maybe impossible?)
I'll be on vacation for the next three weeks, I'll look at it later.
_Originally posted by @laurenz in https://github.com/cybertec-postgresql/db_migrator/pull/11#discussion_r1082793566_