-
Notifications
You must be signed in to change notification settings - Fork 7
Duplicate Partition Exception when multiple tables are to be renamed #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This was referenced May 24, 2022
jcjones
added a commit
that referenced
this issue
May 26, 2022
Fixes #46 The bug was that the partition deduplication only happened against existing partitions; if we _planned_ to produce two duplicates, because the rates of change are crazy, then we wouldn't fix them, leaving it for the later exception to be thrown during SQL generation.
jcjones
added a commit
that referenced
this issue
May 26, 2022
Fixes #46 The bug was that the partition deduplication only happened against existing partitions; if we _planned_ to produce two duplicates, because the rates of change are crazy, then we wouldn't fix them, leaving it for the later exception to be thrown during SQL generation.
jcjones
added a commit
that referenced
this issue
May 26, 2022
Fixes #46 The bug was that the partition deduplication only happened against existing partitions; if we _planned_ to produce two duplicates, because the rates of change are crazy, then we wouldn't fix them, leaving it for the later exception to be thrown during SQL generation.
jcjones
added a commit
that referenced
this issue
May 28, 2022
Fixes #46 The bug was that the partition deduplication only happened against existing partitions; if we _planned_ to produce two duplicates, because the rates of change are crazy, then we wouldn't fix them, leaving it for the later exception to be thrown during SQL generation.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was detected in both staging and production for different tables.
Here's the existing partition structure for prod
orderToAuthz2_new_20220419
. Note thePARTITION_DESCRIPTION
forp_20220522
.We received an alert for
PartManNeeded
for this table (orderToAuthz2_new_20220419
).We should be able to run the partman job and have it sort the partitions out itself. However, there's a partman bug and it can't just yet. Two partitions are predicted to be renamed which is fine, but the new
p_20220524
partition will have the samePARTITION_DESCRIPTION
asp_20220522
above and causes partman to bail out.The quick option here was to drop the
p_20220522
partition and re-run partman. This was a successful operation.The text was updated successfully, but these errors were encountered: