Skip to main content
  1. PostgreSQL Mage/

PostgreSQL vs. MySQL in 2026

·1931 words·10 mins· ·
Ruohang Feng
Author
Ruohang Feng
Pigsty Founder, @Vonng
Table of Contents

PostgreSQL has won the market for new database deployments, and its installed base is now comparable to MySQL’s. With one rising and the other declining, there is little suspense left in the contest for the database kernel of the future.


I. Developer Adoption
#

Start with the numbers.

Stack Overflow 2025
#

More than 49,000 valid responses from 177 countries. PostgreSQL gained 6.9 percentage points year over year; MySQL gained 0.2. PostgreSQL swept all three categories for the third consecutive year. In 2025, Stack Overflow published a database migration-flow chart for the first time. Its own summary: “all databases are migrating to PostgreSQL.”

Stack Overflow 2025 Global Developer Survey

Stack Overflow 2025 database migration-flow chart

JetBrains DevEco 2025
#

An independent survey of 24,534 developers across 194 countries reached the same result: PostgreSQL overtook MySQL as the most popular database.

Database results from the JetBrains 2025 Developer Ecosystem Survey

Docker Hub Pulls
#

This is the most direct proxy for what developers are actually pulling down to do their work. Over the past week, the official postgres image received about 28 million pulls, versus about 7.4 million for mysql: roughly 3.8:1.

Weekly Docker Hub pulls for the official PostgreSQL and MySQL images

Three independent signals—Stack Overflow, JetBrains, and Docker Hub—use different methodologies and point in exactly the same direction.

The China Skew
#

China is different from the rest of the world. Chinese internet companies have a much higher concentration of MySQL, creating strong path dependence. But a new generation of Chinese developers coming in through Django, FastAPI, and Node.js is naturally gravitating toward PostgreSQL. MySQL owns the installed base; PostgreSQL owns the growth.


II. Vendor Strategy
#

Survey data can be challenged for sampling bias. Strategic choices backed by real corporate money are harder to dismiss.

PlanetScale’s Pivot
#

PlanetScale, the company behind Vitess, spent five years offering only MySQL. It announced Postgres in July 2025 and reached GA in September. CEO Sam Lambert said customer demand was “overwhelming” and that “by the end of launch day, we knew we had to do it.” A company whose entire technical identity was MySQL was pushed by the market into building Postgres.

Percona Changes Course
#

Percona is the MySQL ecosystem’s most important third-party vendor. Percona Server, XtraBackup, and PMM are standard equipment for MySQL DBAs worldwide. What is Percona doing now? Building fully open-source TDE for PostgreSQL, continuing to develop its PostgreSQL Kubernetes Operator, and releasing Percona Distribution for PostgreSQL 18. It has now built out a complete second line of business.

In February 2026, Percona co-founder Vadim Tkachenko led an open letter, signed by nearly 250 people, urging Oracle to create an independent foundation to “save” MySQL. The first challenge named in the letter: “PostgreSQL is becoming the default choice for new projects and younger developers.” Tkachenko told The Register: “We see MySQL kind of becoming a legacy technology.”

When core contributors from the MySQL community describe their own technology as “legacy,” that says more than any survey.

TiDB Explores PostgreSQL
#

TiDB’s latest move is DB9, CTO Dongxu Huang’s attempt to build a PostgreSQL compatibility layer on top of TiKV. A database vendor that started with distributed MySQL has decided to embrace PostgreSQL. The implication is obvious.

2025: The Year of PostgreSQL Acquisitions
#

In 2025, the PostgreSQL ecosystem captured nearly every large acquisition in the database sector:

PostgreSQL Wins Over Capital: Databricks Acquires Neon, Supabase Raises $200 Million, and Microsoft Calls Out PG in Earnings

Database Watercooler: Is OpenAI Looking to Acquire Supabase?

Mooncake Pays Off: Another PostgreSQL Extension Company Acquired by Databricks

Major PostgreSQL ecosystem acquisitions and funding rounds in 2025

Databricks acquired two PostgreSQL companies in a single year—Neon and Mooncake—and Snowflake followed with Crunchy Data. Two data-platform giants announced PostgreSQL acquisitions within three weeks of each other. That was not coincidence; it was an arms race.

Andy Pavlo put the point bluntly in a Stormbreaker interview: PostgreSQL companies captured nearly all the capital flowing into the ecosystem. The database sector’s largest acquisitions all targeted PostgreSQL companies. In the MySQL ecosystem, by contrast, the defining event of 2025 was not an acquisition but an open letter.


III. Cloud Platform Data
#

No cloud provider publishes an engine-level breakdown of instances or vCPUs. The following combines public information with figures from industry sources.

AWS
#

Industry sources say that as early as two or three years ago, PostgreSQL had already surpassed MySQL on AWS in both instance count and total vCPUs. PostgreSQL instances are larger on average, so its lead is wider by vCPU than by instance count. No public data directly proves this, but AWS’s product investment in Aurora PostgreSQL points in the same direction.

Alibaba Cloud
#

Chen Zongzhi, head of Alibaba Cloud RDS, said in a recent interview that the ratio of MySQL to PostgreSQL instances in China is about 10:1. The figure I have heard is lower, perhaps around 5:1. Under either measure, MySQL still has a very large absolute installed-base advantage on Chinese cloud platforms. But my sources put PostgreSQL’s year-over-year growth over the past one to two years as high as 100%.

Supabase
#

As of its Series E in October 2025, Supabase was valued at $5.1 billion and managed roughly 3.5 million active databases. More than 50% of companies in the latest Y Combinator batch use Supabase as their backend. Among Silicon Valley startups, that is approaching monopoly territory.

IV. DB-Engines
#

DB-Engines is a composite popularity ranking based on multiple signals, including search, hiring, and social activity. Its value is in longitudinal comparison: the delta against its own historical trend. The chart below shows how the scores have changed from their historical starting points to today.

Historical change in DB-Engines scores


V. Hyperscale Production Deployments
#

PostgreSQL
#

OpenAI, currently the world’s most prominent PostgreSQL deployment. An official engineering post in January 2026 disclosed one Azure PostgreSQL primary and nearly 50 cross-region read replicas serving 800 million users, million-scale QPS, low-double-digit-millisecond p99 latency, and five-nines availability. No sharding. OpenAI infrastructure engineer Bohan Zhang said at PGConf.Dev 2025: “PostgreSQL can scale gracefully under massive read workloads.”

Instagram, a pioneer of PostgreSQL at social-network scale. It made PostgreSQL its core database early on, then used application-level sharding to reach global scale.

Figma, whose Postgres stack has grown nearly 100-fold since 2020, evolving from one database to vertical partitioning plus horizontal sharding.

Notion, which runs multiple PostgreSQL clusters; its core cluster has 32 shards.

Tantan, one of the largest PostgreSQL deployments in the Chinese internet sector. At peak, it ran more than 100 clusters and 2.5 million QPS. Its largest core primary had 33 replicas, and a single cluster handled 400,000 QPS.

Apple, which uses PostgreSQL internally at scale.

GitLab, which runs a monolithic Postgres database.

MySQL
#

Meta, with roughly a million shards, petabytes of data, and thousands of machines—one of the world’s largest MySQL deployments.

Shopify, with a petabyte-scale MySQL fleet.

GitHub, whose primary relational store is MySQL. A recent run of outages has drawn broad criticism of its service reliability.

A Generational Pattern
#

The pattern is clear: nearly all the technology choices behind the hyperscale MySQL deployments—Meta, Shopify, and GitHub—were made before 2010. The next generation of companies founded after 2010, including OpenAI, Figma, Notion, and Tantan, as well as the many new projects on Supabase and Neon, largely default to PostgreSQL.

MySQL can operate at scale; Meta has proved that. But if you are starting from scratch today with no legacy constraints, you are very likely to choose PostgreSQL. Not because it is better in every dimension, but because ecosystem momentum, community vitality, extensibility (pgvector, PostGIS), and default support across every mainstream framework have all shifted in its favor.


VI. Community Governance
#

PostgreSQL
#

Decentralized governance. Core committers work across competing companies including EDB, Crunchy Data, AWS, Microsoft, and Google. No single company can unilaterally set the project’s direction; that principle is written into the community’s constitution. The release cadence is stable—one major version every year, sustained for decades. The PostgreSQL License is BSD-like and highly permissive.

More than 460 extensions cover nearly every modern workload: pgvector, PostGIS, TimescaleDB, Citus, and pg_analytics. PostgreSQL is not merely a database; it is a data-platform kernel adaptable to almost any workload.

Overview of the PostgreSQL extension ecosystem

MySQL
#

Oracle owns the copyright and trademarks outright. In the fall of 2025, it cut roughly 50% of the MySQL engineering team. Founder Monty Widenius said publicly that he was “heartbroken.” Commits to mysql/mysql-server on GitHub nearly stopped. Community manager Descamps left for MariaDB. Nearly 250 people signed an open letter calling for an independent foundation. Oracle responded by promising a “new era” and new features in MySQL 9.7 LTS, but made no substantive concession on the central demand to transfer governance.

MySQL Community Edition still has no native vector search; pgvector shipped in 2021. In an era when AI shapes infrastructure choices, the strategic significance of that gap goes far beyond the feature itself.


VII. Overall Assessment
#

PostgreSQL has won the growth market: new projects, new developers, new platforms, AI-agent infrastructure, and every large database acquisition in 2025. MySQL still holds the installed-base market: the WordPress ecosystem, Alibaba-derived technology stacks, and historical deployments at Meta and Shopify.

DimensionPostgreSQLMySQLConfidence
Developer adoption55.6%, winner in all three categories40.5%, down to fourth place★★★★★
Docker pulls~28 million/week~7.4 million/week, 3.8:1★★★★☆
Vendor strategyPlanetScale pivot, acquisition waveIts own community calls it “legacy”★★★★★
Cloud platforms (AWS)Instance count and vCPUs exceed MySQL (industry sources)★★☆☆☆
DB-Engines popularity680, rising858, flat/slightly declining★★★★☆
Hyperscale deploymentsOpenAI (800 million users), InstagramMeta, Shopify (both chosen before 2010)★★★☆☆
Community governanceDecentralized, stableOracle-controlled, community crisis★★★★★
Acquisition capitalNeon $1 billion + Crunchy $250 million + MooncakeZero★★★★★

But that “installed-base advantage” is historical inertia. It does not generate new technical vitality, attract new developers, or drive new platform choices. When core contributors from the MySQL community are signing an open letter saying “we are becoming legacy technology,” the direction of travel is no longer debatable.

Today’s growth becomes tomorrow’s installed base.


Appendix: Data Sources
#

SourceSample / BasisQuality
Stack Overflow 202549K+ responses, 177 countries★★★★★
JetBrains DevEco 202524,534 responses, 194 countries★★★★☆
Official Docker Hub image pullsPublic real-time data★★★★★
OpenAI engineering blog (2026.01)Official technical disclosure★★★★★
MySQL community open letter (2026.02)~250 signatories★★★★★
Databricks/Neon acquisitionPublic press release, $1 billion★★★★☆
Snowflake/Crunchy Data acquisitionPublic press release, ~$250 million★★★★☆
Databricks/Mooncake acquisitionPublic press release★★★★☆
PlanetScale CEO’s public statementsFirst-party corporate action★★★★☆
DB-Engines 2026.03Multi-signal composite ranking★★★★☆
Supabase Series E$5.1 billion valuation★★★☆☆
AWS PostgreSQL vs. MySQLIndustry sources★★☆☆☆
Alibaba Cloud MySQL:PostgreSQLIndustry sources★★☆☆☆

Further Reading
#

Related