Skip to content

How to Fix - Future partitions not being created #439

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

You must be logged in to vote

By default, no new partitions are created by pg_partman unless new data has been added to the partition set. All future partition creation is managed by calling the run_maintenance() function on a regular basis. New child tables are not automatically created simply based on incoming data to avoid contention issues. You can either call run maintenance via cron or you can use the built in background worker (see documentation).

If you had added new data, and there are appropriate child tables for that data, it should go to those child tables. If there is no matching child table for that data, then it goes to the default. You will then have to use the partition_data_*() functions/procedures t…

Replies: 3 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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