Skip to content

Future data inserted into default partition and maintenance failed. #619

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

You must be logged in to vote
  1. Is this normal behavior where if a partition doesn't exist it goes into the default and pg_partman can't pull it out?

Yes, this is the normal behavior when a default partition exists

  1. Is there a way to prevent this from happening besides creating a lot of partitions?

If you want to have a default partition to avoid losing data, then any data outside the window of available children will get that data inserted to the default. There is no way to prevent it if the available child does not exist.

  1. How/when are new partitions created?

New partitions are made when the run_maintenance() or run_maintenance_proc() function is called via some scheduler app (cron, etc). Or the background w…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@pdev91
Comment options

Answer selected by pdev91
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