Skip to content

Repartitioning old data #548

Closed Answered by keithf4
ImperiousEnterpriseLLC asked this question in Q&A
Discussion options

You must be logged in to vote

If I'm understanding, you're wanting to drop old partitions via retention then add them back? Not sure I understand the reasoning for that, but if that's the design pattern you want, I would suggest that you leave the retention settings at their default so that the child table is simply detached vs getting fully dropped. Then if you need to add it back again later, you can simply reattach that child.

pg_partman never automatically recreates old partitions after a partition set has already been made. It is only worried about future table creation. If you need to do that, you will have to do so manually.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ImperiousEnterpriseLLC
Comment options

You must be logged in to vote
5 replies
@keithf4
Comment options

@keithf4
Comment options

@ImperiousEnterpriseLLC
Comment options

@keithf4
Comment options

@ImperiousEnterpriseLLC
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants