different partition types for parent and sub partitions #756
Unanswered
walkerline
asked this question in
Q&A
Replies: 1 comment 2 replies
-
So partman was primarily designed for partitioning methods that require continuous maintenance based on time or integers. While the top level does require continuous maintenance, I haven't developed any way for sub-partitions that aren't also based on time or integers. I'm not quite sure how I'd handle it at this point. Perhaps a feature to inherit from the template somehow. I'll have to think on it a bit. I'm open to PRs for ideas! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to create a structure where the parent table is partitioned by range, but sub partition of the parent partition is partitioned by list.
So this is my table
CREATE TABLE orders_varchar_8 ( created_at DATE NOT NULL, region_name varchar(4) NOT NULL ) PARTITION BY RANGE (created_at);
And first level I was able to use creat_parent() to create parent partition by date... now I want to create sub partitions by region_name which is a text field. However I don't see a way to use create_sub_parent() to achieve this.
Any suggestion would be appreciated.
Also, seems like the template cannot be applied for creating partitions. Is it a bug? The partitions always use the parent table as the format. i use version 5.1.0
Beta Was this translation helpful? Give feedback.
All reactions