PostgreSQL has overtaken MySQL to become the most widely used database among developers, with adoption reaching 55% in the 2025 JetBrains Developer Ecosystem survey compared to MySQL’s 40%—a dramatic reversal from 2018 when MySQL dominated at 59% and PostgreSQL trailed at 33%. The Stack Overflow Developer Survey 2025 confirms the shift independently, with PostgreSQL at 49% usage and ranking as the #1 most desired database for the third consecutive year. Industry analysts are calling PostgreSQL’s dominance “irreversible.”
This isn’t just a preference change—it affects technology choices for millions of developers and enterprises. PostgreSQL’s rise signals the end of specialized database sprawl. Moreover, developers are consolidating workloads into a single system, reporting cost savings of 60-80% by replacing dedicated vector databases, NoSQL stores, and analytics platforms with PostgreSQL’s versatile architecture.
The Survey Data That Confirms PostgreSQL’s Dominance
Two major 2025 developer surveys—JetBrains (24,534 respondents across 194 countries) and Stack Overflow (49,000+ responses)—independently confirm PostgreSQL as the #1 database. JetBrains reports 55% adoption while Stack Overflow shows 49%, both demonstrating PostgreSQL’s significant lead over MySQL, which has declined to approximately 40% from its 2018 peak of 59%. Furthermore, the DB-Engines Q1 2025 rankings show PostgreSQL trending upward with 16.85% of the relational database market.
With 70,000+ developers surveyed across two independent studies, this isn’t anecdotal—it’s a confirmed industry-wide shift. Notably, Stack Overflow’s data reveals that 47% of developers want to use PostgreSQL next year, while 66% of current users plan to continue using it. When both the world’s largest developer platform and a major tools company independently report the same trend, it signals a permanent change in database selection patterns.
pgvector: The AI Feature That Changed Everything
PostgreSQL’s pgvector extension enables AI and vector search workloads without requiring specialized vector databases like Pinecone or Weaviate. The pgvector 0.8.0 release delivers 9× faster queries and 3-5× throughput improvements compared to previous versions. Consequently, organizations report 60-80% cost reductions when consolidating from dedicated vector databases to PostgreSQL for workloads under 100 million vectors—which covers the vast majority of RAG (Retrieval-Augmented Generation) applications powering modern chatbots, semantic search, and recommendation engines.
pgvector adoption grew 400% since 2023, transforming from a niche tool into what industry observers call “a mission-critical component.” Financial services firms use it for fraud detection, healthcare systems power diagnostic tools with it, and e-commerce platforms run semantic product search through pgvector—all without the infrastructure overhead of managing separate vector databases. Companies discovered they don’t need specialized systems when PostgreSQL handles both relational data and AI workloads in a single database.
In contrast, MySQL had nothing comparable to pgvector until very recently. When developers needed embeddings and vector search for AI applications starting in 2023, PostgreSQL had the answer while MySQL scrambled to catch up. That gap became the inflection point.
Why MySQL Lost: Stagnation and Oracle’s Stewardship
MySQL’s decline from 59% to 40% adoption stems from technical stagnation under Oracle’s stewardship. The most damning evidence: a “serious” (S2 severity) bug submitted in June 2005 remains unfixed 20 years later. Developer sentiment reflects this neglect, with community members noting that “MySQL seems to suffer from years of neglect in the performance engineering department.”
Furthermore, Oracle’s tight control of MySQL engineering altered community dynamics in ways that slowed momentum. Concerns persist that Oracle is sidelining the open-source MySQL by making important features exclusive to cloud-based services. InfoWorld’s 2025 analysis captured the shift: “MySQL at 30: Still important but no longer king.”
The technical gaps are equally stark. PostgreSQL offers richer SQL features, stronger ACID compliance, and better performance for complex queries compared to MySQL’s historical approach of prioritizing raw speed over correctness. Importantly, developers migrating from MySQL report they “no longer fight quirks or work around limitations”—PostgreSQL’s standards compliance and excellent documentation make development faster and more enjoyable.
PostgreSQL’s Versatility Eliminates Database Sprawl
PostgreSQL handles multiple workload types in a single database: traditional relational transactions with strict ACID compliance, semi-structured data through JSONB (40-60% faster queries than text-based JSON), AI/vector search via pgvector, and analytical workloads with parallel execution. This versatility allows developers to consolidate infrastructure, abandoning the “specialized database per use case” approach that dominated the 2010s.
JSONB performance improvements tell part of the story. With proper optimization, JSONB queries run 40-60% faster, and B-tree indexing handles 1,000 concurrent operations with under 500ms latency on datasets of 50 million records. Moreover, PostgreSQL’s design philosophy—correctness first, then features, then performance—contrasts sharply with MySQL’s historical prioritization of performance over correctness, which led to the silent data integrity issues that plagued MySQL for years.
Cloud providers invested heavily in optimized managed PostgreSQL services. AWS RDS delivers 2.7K transactions per second for OLTP workloads, Azure Flexible Server excels at OLAP with 40% performance improvements, and GCP Cloud SQL offers balanced performance at $116 per month compared to $141 for AWS and Azure. Developers hate infrastructure sprawl, and PostgreSQL’s “one database to rule them all” approach delivers both cost savings (60-80% vs specialized systems) and operational simplicity.
What Developers Should Do in 2025
For developers starting new projects in 2025, PostgreSQL is the default choice. The data supports this: it’s the #1 most desired database three years running, with 66% of current users planning to continue using it. Specifically, the combination of AI readiness (pgvector), standards compliance, and cloud provider optimization makes PostgreSQL the safe bet for future-proofing tech stacks.
For teams currently on MySQL, the combination of MySQL 8.0 approaching end-of-life, Oracle’s stewardship concerns, and PostgreSQL’s AI capabilities makes migration planning urgent. Migration tools like pgloader automate schema conversion, and developers report 40% query performance improvements after switching. Additionally, cloud deployment decisions follow workload patterns: AWS RDS for OLTP, Azure for OLAP, GCP for cost efficiency, and Supabase for startups needing the most cost-competitive option at $113 per month.
The shift isn’t reversing. PostgreSQL’s community-driven governance prevents the Oracle-style control that hampered MySQL. The extension ecosystem (pgvector for AI, PostGIS for geospatial, TimescaleDB for time-series) proves PostgreSQL’s versatility will only expand. When two independent surveys covering 70,000+ developers show the same adoption pattern, and when that pattern includes 60-80% cost savings for modern workloads, the industry consensus is clear.
Key Takeaways
- PostgreSQL dominates at 55% adoption (JetBrains) and 49% (Stack Overflow), while MySQL declined to 40% from its 2018 peak of 59%—a 19-percentage-point drop in seven years
- pgvector’s 9× query speed improvements and 60-80% cost savings versus specialized vector databases make PostgreSQL the database for the AI era, with 400% adoption growth since 2023
- MySQL’s 20-year-old unfixed serious bugs, Oracle’s restrictive stewardship, and late arrival to AI features (vector search) drove developers to abandon it in favor of PostgreSQL’s innovation
- PostgreSQL’s versatility consolidating relational, JSONB (40-60% faster queries), vector search, and analytics workloads eliminates the infrastructure sprawl of managing multiple specialized databases
- For 2025 projects, PostgreSQL is the industry consensus default choice—#1 most desired database three years running with strong cloud provider support and community-driven governance











