Quick revision
The short answer
We run it as a programme with shared tooling, not as 60 separate projects. Each database is assessed for complexity (stored procedures, proprietary features, size and criticality), a central migration team builds schema conversion, CDC pipelines and data comparison that service teams use, and standard PostgreSQL target configurations and operations are defined before the first migration. We start with simple, low-risk databases, move to the hard ones, and time waves around licence savings and contract dates.
What to remember
In this answer, we organised a three-year move of 60 services to PostgreSQL. We assessed each database for stored procedures, proprietary features, size and criticality, built a central migration team with schema conversion, CDC and data comparison tooling, defined the standard PostgreSQL target and operations before the first migration, started with simple pilots and moved to the hard databases later, and timed waves to free licences around contract dates.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
We run it as a programme with shared tooling, not as 60 separate projects. Each database is assessed for complexity (stored procedures, proprietary features, size and criticality), a central migration team builds schema conversion, CDC pipelines and data comparison that service teams use, and standard PostgreSQL target configurations and operations are defined before the first migration. We start with simple, low-risk databases, move to the hard ones, and time waves around licence savings and contract dates.
Why this question is asked
Three years and 60 services is long enough for a programme to lose momentum, and large enough that doing each migration differently would waste most of the effort. The early migrations teach the most, and the last few are usually the hardest. Interviewers ask this design question to see whether we can organise the work so each migration is cheaper and safer than the previous one, while the business sees savings along the way. In this answer, we will assess the portfolio, set up the central team and tooling, define the target platform first, sequence the waves, and tie the plan to licence savings.
1Assessing Every Database
The first quarter is spent understanding what we have. For each of the 60 services' databases we collect the size, the number of tables, the amount and complexity of procedural code (stored procedures, packages, triggers, functions), the proprietary features in use (vendor-specific SQL syntax, hierarchical queries, special data types, advanced queuing, materialised view refresh features, optimizer hints), integrations such as database links or ETL tools, and the business criticality and acceptable downtime.
Schema conversion tools, such as ora2pg for Oracle sources or AWS SCT, produce automated assessment reports that estimate how much converts automatically and how much needs manual work. We use them as a starting point, then add what the tools cannot see: how well the team knows the code, how good the tests are, and how much change is planned for the service anyway. Each database gets a complexity score and a rough effort estimate.
| Database | Size | Procedural code | Criticality | Complexity |
|---|---|---|---|---|
| catalogue | 40 GB | none | medium | low |
| notifications | 120 GB | 5 triggers | low | low |
| orders | 1.8 TB | 60 procedures | high | high |
| billing | 900 GB | 40 packages, 12k lines | high | very high |
| reporting | 3 TB | views and hints | medium | medium |
2A Central Team With Shared Tooling
Service teams know their code but rarely know database migration, and each would otherwise learn it from scratch. So we create a central migration team, a few database engineers and platform engineers, whose job is to build and run the shared tooling and to pair with service teams on their migrations. The tooling covers schema conversion with review guidelines, CDC pipelines for keeping PostgreSQL in sync during the parallel run, data comparison that checks row counts and checksums per key range, and a cutover runbook with automation.
Service teams remain responsible for their application changes, tests and the go decision, while the central team makes the database side repeatable. Every migration feeds lessons back: a new conversion rule, a better comparison check, a runbook step. After ten migrations, the eleventh should take a fraction of the effort of the first.
3Define the Target Before the First Migration
It is tempting to start migrating as soon as possible, but if each team sets up PostgreSQL its own way, we replace one database estate with 60 snowflakes. So before the first migration, the platform defines the standard target: managed service or self-hosted, PostgreSQL major version, high availability setup, backup and restore policy with tested PITR, monitoring and alerts, parameter baselines per size, connection pooling, allowed extensions, security settings, and on-call ownership.
This standard target is provisioned by self-service templates, so a migrating team gets a production-ready PostgreSQL in minutes. It also gives the business a reason to trust the move: every migrated service lands on a platform that is already monitored, backed up and supported.
- Steering and sponsorpriorities, contract dates, savings tracking
- Central migration teamtooling, pairing, lessons learned
- Service teamsapplication changes, tests, go decision
- Standard PostgreSQL platformtemplates, backups, monitoring, on-call
- Shared toolingconversion, CDC, comparison, cutover automation
5 layers, from the top down. Step through them one at a time.
4Sequencing the Waves
We start with simple, low-risk databases: small, little or no procedural code, moderate criticality. The first two or three are pilots, chosen to exercise the tooling end to end, and they will take longer than estimated. That is expected; their purpose is to find the gaps in the tooling and runbooks while mistakes are cheap.
Then we move in waves of increasing difficulty, each wave a handful of databases running in parallel. The hardest ones, large, critical databases with thousands of lines of procedural code, come in the second half of the programme, when the team has experience and the tooling is mature. For those, we decide case by case whether to translate procedural code to PL/pgSQL or move logic into the application, which is often the better long-term choice but costs more up front.
- Quarter 1: assess all 60, define target platformcomplexity scores, standard templates
- Quarters 2 to 3: pilot 3 simple databasestooling and runbooks proven
- Year 2: waves of low and medium complexityseveral in parallel
- Year 3: complex, critical databasesprocedural code rewritten or translated
- Retire licences as each contract allowssavings tracked per wave
5 steps in order. Play them, or step through them one at a time.
5Tying the Plan to Licences and Contracts
The programme is usually justified by licence savings, so its schedule should follow the contracts. Commercial database licences are often counted per processor core or per server, with annual support fees. Savings only appear when we can actually stop paying for licences, which may require freeing whole servers or reaching a contract renewal date. So we map each database to the licences it uses and plan waves so that whole servers are freed in time for renewals, and we track savings realised against the business case each quarter.
This also keeps sponsors engaged. A programme that shows savings in its first year, even small ones, keeps its funding for the difficult third year.
6Follow-up questions
How do you keep service teams motivated?
By making the migration as cheap for them as possible through the central tooling and pairing, by scheduling it alongside their roadmap rather than against it, and by showing the benefits: a better-supported platform, lower cost and easier local testing with PostgreSQL.
What if one complex database cannot be migrated in time?
We keep a reduced licence for it while the work continues, and negotiate the contract for that smaller footprint. Planning for a few stragglers is better than letting one database hold the whole programme hostage.
How do you measure progress?
By databases migrated and retired, licences freed, savings realised, incidents caused by migrations, and the effort per migration, which should fall wave by wave.
7Conclusion
In this answer, we organised a three-year move of 60 services to PostgreSQL. We assessed each database for stored procedures, proprietary features, size and criticality, built a central migration team with schema conversion, CDC and data comparison tooling, defined the standard PostgreSQL target and operations before the first migration, started with simple pilots and moved to the hard databases later, and timed waves to free licences around contract dates.
Open with
I would run it as one programme with shared tooling, so every migration makes the next one cheaper. First, assess all 60 databases: size, procedural code like stored procedures and packages, proprietary features, integrations and criticality, using tools like ora2pg or AWS SCT for a first estimate, then giving each a complexity score.
Then, if they want more
Second, before any migration, define the standard PostgreSQL target: hosting model, version, HA, backups with tested point-in-time recovery, monitoring, parameter baselines, pooling and on-call, available through self-service templates, so we do not end up with 60 different setups.
Third, a central migration team builds and runs the shared tooling, schema conversion, CDC pipelines for the parallel run, data comparison and cutover automation, and pairs with each service team, who own their application changes and the go decision.
Then sequence: start with two or three simple, low-risk pilots to prove the tooling, move in waves of increasing difficulty, and do the large databases with deep procedural code last, deciding case by case whether to translate it or move logic into the application.
And I would time waves with the licence contracts, freeing whole servers before renewals, and track realised savings each quarter.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- PostgreSQL documentation, MySQL reference manual
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Your company decides to move 60 services from a commercial database to PostgreSQL over...": https://scrivio-interview-library.netlify.app/databases/database-operations/0776fc0a31/