Skip to content

Extend `gitlab_schema` to understand partitioned and deleted tables

What does this MR do and why?

We seem to analyse data sources in a number of different formats that are outside of currently visible tables (as defined by gitlab_schema.yml).

These tables include:

  • Rails accessing pg_* catalog tables
  • Rails accessing information_schema.* catalog tables
  • GitLab Rails accessing and deleting data from partitioned tables
  • GitLab Rails in specs accessing deleted tables as they are referenced by some migrations

This is a portion taken from !71540 (closed) responsible for table to schema classification.

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 Kamil Trzciński (Back 2025-01-01)

Merge request reports

Loading