Quick revision
The short answer
I would frame it as a business decision with technical evidence: start from the unit's needs (workloads, data features such as JSON, GIS and full text, scale and availability, compliance, and team skills), compare the ecosystems we can actually use, weigh the operating cost of adding or keeping an engine, and look at long-term governance and licensing risk. Then I would make the choice as reversible as is cheap, by keeping shared code portable and accepting engine-specific features only where they pay off.
What to remember
In this answer, we framed a ten-year choice between MySQL and PostgreSQL as a structured decision. We start from the unit's needs with numbers, compare the managed offerings, extensions and tooling we can actually use, weigh the cost of operating one more engine against the company's existing platform, and record long-term risks such as Oracle's ownership of MySQL and PostgreSQL's community governance. We keep the choice reversible where it is cheap through portable shared code and engine-specific features only where they pay off, and present it as a written proposal with clear revisit conditions.
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.
I would frame it as a business decision with technical evidence: start from the unit's needs (workloads, data features such as JSON, GIS and full text, scale and availability, compliance, and team skills), compare the ecosystems we can actually use, weigh the operating cost of adding or keeping an engine, and look at long-term governance and licensing risk. Then I would make the choice as reversible as is cheap, by keeping shared code portable and accepting engine-specific features only where they pay off.
Why this question is asked
A ten-year database choice outlives most of the people who make it, most of the frameworks the first services are written in, and often the cloud contract that hosts them. Both MySQL and PostgreSQL are mature, fast and widely used, so the question is rarely which one is better in general. Interviewers ask this at the most senior level to see how we structure a decision with long consequences, involve the right people, and avoid both a coin flip and a religious debate. In this answer, we will go through the needs, the ecosystem, operating cost and long-term risk, and then see how to keep the decision as reversible as possible and how to present it.
1Start From the Needs, Not the Engines
The first step is to write down what the new services will actually do, with numbers. What kinds of workloads: mostly OLTP with short transactions, reporting, search, geospatial, event storage? Which data features: heavy use of JSON documents with queries inside them, GIS, full-text search, time ranges? What scale and availability: thousands or hundreds of thousands of writes per second, one region or several, recovery point and recovery time objectives? What compliance obligations: encryption, audit logging, data residency? And who will build and run it: which engine do the current teams and the on-call staff already know?
These answers often settle much of the decision. A unit whose services lean on geospatial queries, jsonb documents with GIN indexes and range types will find PostgreSQL's features and extensions save real work. A unit with simple OLTP and a team of experienced MySQL operators may get more from the familiar choice than from any feature list.
2Compare the Ecosystems We Can Actually Use
We compare what is available to us, not what exists in theory. Which managed offerings does our cloud provider run for each engine, at what maturity, with what high availability and backup features? Which extensions do those managed services allow? What tooling do we rely on: online schema change (gh-ost and pt-online-schema-change for MySQL; PostgreSQL's transactional DDL and concurrent index builds), CDC (Debezium supports both), backup and point-in-time recovery, monitoring? And where is each project heading: release cadence, support windows, and the community and vendors behind them.
| Question | MySQL | PostgreSQL |
|---|---|---|
| Data features we need | JSON via generated columns | jsonb + GIN, PostGIS, ranges |
| Online schema change | INSTANT DDL, gh-ost | transactional DDL, CONCURRENTLY |
| HA built in | InnoDB Cluster | streaming replication + external tooling |
| Governance | owned by Oracle | community project (PGDG) |
| Skills in our teams | count of experienced operators | count of experienced operators |
| Already run elsewhere here | which units, how many instances | which units, how many instances |
The table is an example of the evidence we would collect, not a verdict. Each row is scored against our own needs, and some rows matter far more than others for a particular unit.
3Weigh the Operating Cost of One More Engine
Every engine a company runs needs its own runbooks, monitoring, backups, upgrade process, security patching, tooling and experienced on-call people. If the rest of the company already runs one of the two engines at scale, choosing the other means building all of that a second time, or giving the new unit a weaker version of it. So the default is the engine the company already operates well, and choosing a second engine needs a clear reason that is worth the extra cost, such as a feature the business depends on.
That cost should be expressed in concrete terms: the number of people who must be trained or hired for on-call, the tooling to build, and the time until the new platform reaches the maturity of the existing one.
4Look at Long-Term Risk
Over ten years, ownership and licensing matter. MySQL is owned by Oracle: the community edition is open source under the GPL, while some features such as certain backup and security tools are in the commercial edition. PostgreSQL is a community project governed by the PostgreSQL Global Development Group, under a permissive licence, with many companies contributing and none controlling it. We also look at history: how each project handled releases and support (MySQL now has long-term support releases such as 8.4 alongside innovation releases; PostgreSQL releases a major version every year and supports each for five years), and how forks and managed variants have evolved. Neither is a reason to panic about either engine, but the risk should be written down and accepted by the decision makers.
5Keep the Decision Reversible Where It Is Cheap
We cannot make a database choice free to reverse, but we can avoid making it more expensive than necessary. Shared libraries and common code use portable SQL and JPA mappings. Engine-specific features are welcome where they pay off, such as a jsonb index that removes a search service, and they are kept in the services that need them, with a note in the design record. Data leaves services through events and APIs rather than through shared databases, so another team's choice does not lock us in.
- Collect needs with numbersworkloads, features, scale, compliance, skills
- Gather ecosystem evidencemanaged services, tooling, extensions
- Does an existing company engine meet the needs?YesChoose it, the defaultNoJustify a second engine with cost
- Record long-term riskslicensing, governance, support
- Write the proposalrecommendation and revisit conditions
- Sign-off and review in 2 to 3 years
6 steps in order. Play them, or step through them one at a time.
Finally, the decision is presented as a short written proposal with the needs, the evidence, the recommendation, the risks accepted and the conditions under which we would revisit it, and it is signed off by the unit's technical and business leadership.
6Follow-up questions
What if the teams are split between the two camps?
Then the written needs and evidence do the work. We ask each camp which concrete requirement their engine meets better, check the claims with small proofs of concept on our own workloads, and decide on the result. People accept a decision more readily when they can see the criteria.
Would you ever allow both engines in the unit?
Yes, when a specific workload clearly benefits, for example a geospatial service on PostgreSQL in a MySQL company, but as a documented exception with an owner, not as free choice per team.
How do you avoid the decision becoming outdated?
By writing down the conditions under which we would revisit it, such as a change in managed service support or a new workload type, and by reviewing it every two or three years.
7Conclusion
In this answer, we framed a ten-year choice between MySQL and PostgreSQL as a structured decision. We start from the unit's needs with numbers, compare the managed offerings, extensions and tooling we can actually use, weigh the cost of operating one more engine against the company's existing platform, and record long-term risks such as Oracle's ownership of MySQL and PostgreSQL's community governance. We keep the choice reversible where it is cheap through portable shared code and engine-specific features only where they pay off, and present it as a written proposal with clear revisit conditions.
Open with
I would not treat it as a question of which engine is better, because both are mature and fast. I would treat it as a decision with long consequences and structure it.
Then, if they want more
First, the needs, written with numbers: workload types, data features like JSON, geospatial and full text, scale and availability targets, compliance, and the skills of the teams who will build and run it.
Second, the ecosystem we can actually use: managed offerings in our cloud, allowed extensions, tooling for online schema changes, CDC and backups, and where each project is heading. Third, operating cost: if the company already runs one engine well, choosing the other means a second set of runbooks, tooling and on-call experience, so that needs a clear reason.
Fourth, long-term risk: MySQL is owned by Oracle, with some features only in the commercial edition, while PostgreSQL is community governed with a permissive licence; I would look at how both have handled releases and support.
Then I would keep the decision reversible where it is cheap: portable SQL in shared code, engine-specific features only where they pay off, and no shared databases between services. I would present it as a short written proposal with the evidence, the recommendation, the accepted risks and the conditions for revisiting it, and get sign-off from technical and business leadership.
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
- 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 "A new business unit asks whether to choose MySQL or PostgreSQL for all of its new...": https://scrivio-interview-library.netlify.app/databases/mysql/3a3be18b15/