News for hackers. Stuff that matters.
Re:My Notes on Gitlab's Postgres Schema Design (2022) by iurisilvio on Sunday February 18, 2024 @04:13AM (#39417492)
Migrating primary keys from int to bigint is feasible. Requires some preparation and custom code, but zero downtime.

I'm managing a big migration following mostly this recipe, with a few tweaks: http://zemanta.github.io/2021/08/25/column-migration-from-in...

FKs, indexes and constraints in general make the process more difficult, but possible. The data migration took some hours in my case, but no need to be fast.

AFAIK GitLab has tooling to run tasks after upgrade to make it work anywhere in a version upgrade.

There are no comments on this comment yet.