Skip to content

Conversation

AdarshHD
Copy link

@AdarshHD AdarshHD commented Apr 11, 2025

Earlier in 4.7.1 we had column in part_config table drop_cascade_Fk, so if the partitioned table on which maintenance was run using run_maintenance, if it had any Reference then those things use to get dropped. But that was not right, I guess that reason it has been removed from 5.1.0 version. But a new problem comes if partitioned table is being referred then run maintenance will fail. In order to handle this we need to detach partition before dropping it, hence I have made the changes in two place where partition was being dropped, this should work smoothly without any issue even when partition table is being referred by another table.

had reported this as issue in #767

@keithf4
Copy link
Collaborator

keithf4 commented Oct 14, 2025

This looks good but would like to get a unit test in place to ensure it works as expected now and in the future. If you have a chance to do one in the near future, then I can immediately merge this in as a bug fix and get a patch release out.

Otherwise I'll look at getting that unit test done and in with 5.4 when that release is ready.

@keithf4 keithf4 self-requested a review October 14, 2025 18:38
Copy link
Collaborator

@keithf4 keithf4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See last comment on PR

@keithf4 keithf4 added this to the 5.4 milestone Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants