Skip to content

Prevent index removal on partition table

Max Orefice requested to merge morefice/prevent-index-removal-on-partition into master

What does this MR do and why?

Following up !101924 (merged) where we prevented index creation on a partition table.

This MR extends our index removal helper to make sure it is not being called on a partition table:

  • remove_concurrent_index
  • remove_concurrent_index_by_name

Why are we doing this?

This will avoid developer's mistake when dropping indexes on a partition table.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Max Orefice

Merge request reports