Skip to content

Creating extra monthly partitions in postgres using pg_partman #518

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

You must be logged in to vote

Yes this is the expected default behavior. Future partition creation is based on the data that exists, not the tables that exist. This is to prevent endless child table creation when a table is no longer in use.

If you want child tables to keep being created for a time-based partition set, no matter the data, set the infinite_time_partitions column in part_config to true for that table.

This is not possible for integer based partitioning and is always based on the existing data.

Replies: 1 comment 1 reply

Comment options

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

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