Fully shard todos

Todos (# rows: https://postgres.ai/console/gitlab/gitlab-production-main/sessions/42475/commands/130022)

Milestone 18.5 (required stop)

Milestone 18.6

  • Prepare to fully shard table -> !209494 (merged)
    • validate foreign key constraint (SYNC)
    • finalize sharding key backfill
    • prepare ASYNC constraint check on NOT NULL sharding key
  • Verify the NOT NULL (NOT VALID) -> NOT NULL constraint has changed on the sharding key on .com
  • Fully shard table -> !211275 (merged)
    • SYNC validate NOT NULL constraint on sharding key
    • update db/docs/*.yml with sharding key
  • verify the NOT NULL constraint check is set on the table's sharding key
Edited by Tomasz Skorupa