Skip to content

Remove code for PG11 custom foreign keys

Patrick Bair requested to merge 334289-remove-pg11-partitioned-foreign-keys into master

What does this MR do?

Related issue #334289 (closed)

Prior to version 12, Postgres did not support foreign keys where the target table was a partitioned table. The database team had begun work on a custom solution to solve this problem, but as we're on v12, it's no longer needed. This MR removes all the related code. Continuation of work from the previous MR: !64647 (merged), which removed the hooks which trigger this code.

Also, as I was preparing to remove the related spec file, I noticed that there are other helpers without test coverage, so I added tests for those.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #334289 (closed)

Edited by Patrick Bair

Merge request reports