Matt Asay
Contributing Writer

Postgres is eating relational

analysis
Oct 24, 20224 mins
DatabasesPostgreSQLRelational Databases

Itโ€™s hard to compete with easy. PostgreSQL has a lot of great qualities, but being easy to use seals the deal for companies and consultants.

easy simple pixel hand computer pointer
Credit: Getty Images

Even as NoSQL databases keep booming, the relational party is very far from over. But among the relational crowd, one database keeps growing in popularity at the expense of its more established peers. Yes, Iโ€™m talking about PostgreSQL. The real question isnโ€™t why developers like PostgreSQL. There are plenty of reasons. No, the real question is why developers like it so much right now.

The moment that keeps going

The PostgreSQL renaissance is several years old now, somethingย Iโ€™ve written aboutย repeatedly. The reasons for its popularity? There are several, as consultantย Tanel Poder neatly summarizes:

1. Rich set of features 2. Extremely extensible (extensions, hooks) 3. Open source 4. โ€˜Permissiveโ€™ open source license

The thing is, these have been true for some time, and long before PostgreSQL really started to climb the popularity rankings (perhaps best chartedย by OnGres founder รlvaro Hernรกndez, who used linear scale to show the relative growth of PostgreSQL versus the relational database incumbents):

postrgresql popularity Alvaro Hernandez

PostgreSQLโ€™s rise in popularity has been consistent for years.ย ย 

MySQL was early to the open source relational database party but was used more to build the nascent web than to displace mainstream enterprise databases. MySQL also ended up owned by Oracle, which hasnโ€™t seemed to slow its development but may have diminished community fervor. Hence, over time MySQL has joined proprietary peers Oracle and SQL Server in declining in popularity relative to not only PostgreSQL, but also to a rising class of NoSQL databases such as Amazon DynamoDB, MongoDB, Redis, Apache Cassandra, and more.

At any rate, no one questions how good PostgreSQL is nor the part it plays in the industry trend that favors general-purpose databases. This isnโ€™t exactly news. What is news is the rush to modernizeโ€”and PostgreSQLโ€™s role in it.

Pushing the easy button

Without deprecating (even a little bit) all the various reasons to like PostgreSQL, thereโ€™s perhaps one that seems to stand out: Itโ€™s easy. Itโ€™s not necessarily easier to learn or use than other relational databases. (Itโ€™s not even the database newbies trained on MySQL are most likely to move to.) But for those who are already used to relational databases and want to ditch expensive Oracle, for example, PostgreSQL is the โ€œeasy button.โ€ Most companies arenโ€™t looking to lift and shift, as EDB CEOย Ed Boyajian once told me, but they are turning to PostgreSQL for their greenfield applications because they already have SQL/relational skills in-house, built up over decades of using Oracle, SQL Server, and DB2.

So even if another database model might actually be better for their use case, the โ€œeasy buttonโ€ is to go PostgreSQL. As ex-AWS engineerย Dave Cuthbert notes, โ€œFar more apps are using relational [databases] because it was the only hammer they had.โ€

Of course, for many enterprise workloads, the people doing the architectures actually arenโ€™t employed by the enterprise but get engaged as consultants. Within the largest global system integrators, thereโ€™s that built-in relational experience and, from my conversations with folks in the industry, this tends to be their primary reason for pushing PostgreSQL.

During and after the pandemic, there has been huge demand to modernize enterprise infrastructure to make enterprises more agile and responsive to rapidly evolving customer requirements. Those global system integrators take the modernization projects and often apply the technologies that are easiest for them to deploy, netting them the best margins on their services. We can argue about whether this is actually the best thing for customers wanting to modernize, but itโ€™s not hard to understand the underlying logic.

Now, if youโ€™re me, working for a document database company, itโ€™s fair to think this apparent overreliance on relational is more due to inertia than a concerted attempt to embrace modern data infrastructure. In my view, the โ€œwhy now?โ€ question is answered by many with โ€œbecause itโ€™s easy.โ€ Not because itโ€™s best.

โ€œBestโ€ is, of course, subjective, and โ€œbecause itโ€™s easyโ€ has been a prime driver of everything from open source to cloud. Easeโ€”or convenienceโ€”is one heck of a drug. Companies that want to compete with PostgreSQLโ€™s โ€œeasy buttonโ€ need to come up with something at least as compelling. Meanwhile, PostgreSQL doesnโ€™t seem to be eating into NoSQL, but it sure seems to be growing at the expense of the relational incumbents.

Matt Asay

Matt Asay runs developer marketing at Oracle. Previously Asay ran developer relations at MongoDB, and before that he was a Principal at Amazon Web Services and Head of Developer Ecosystem for Adobe. Prior to Adobe, Asay held a range of roles at open source companies: VP of business development, marketing, and community at MongoDB; VP of business development at real-time analytics company Nodeable (acquired by Appcelerator); VP of business development and interim CEO at mobile HTML5 start-up Strobe (acquired by Facebook); COO at Canonical, the Ubuntu Linux company; and head of the Americas at Alfresco, a content management startup. Asay is an emeritus board member of the Open Source Initiative (OSI) and holds a JD from Stanford, where he focused on open source and other IP licensing issues. The views expressed in Mattโ€™s posts are Mattโ€™s, and donโ€™t represent the views of his employer.

More from this author