Skip to content

Is there a recommended pg_partman naming convention for integer range partitioning? #629

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

You must be logged in to vote

Moving this to a discussion.

The only real conventions around partitioning are the suffixes and with pg_partman, that is automatically maintained for you. My only suggestion is to keep your table name as short as you can since the suffix will continue to grow longer over time and Postgres has a 63 byte (not character) limit on object names. Partman also manages that for you, truncating the table name before adding the suffix, but it can be startling to suddenly see your table names getting cut off.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by keithf4
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
Converted from issue

This discussion was converted from issue #628 on February 21, 2024 04:27.