PostgreSQL Trends: Most Popular Cloud Providers, Languages, VACUUM, Query Management Strategies & Deployment Types in Enterprise
Tags: postgres, database, sql, cloud
Published: 2019-10-07 17:54:41

---
title: PostgreSQL Trends: Most Popular Cloud Providers, Languages, VACUUM, Query Management Strategies & Deployment Types in Enterprise
published: true
description: Most popular cloud providers for PostgreSQL, VACUUM methods, query management strategies, and on-premises vs. public cloud use in enterprise - ScaleGrid Blog
tags: Postgres, Database, SQL, Cloud,
canonical_url: https://scalegrid.io/blog/postgresql-trends-most-popular-cloud-providers-languages-vacuum-query-management-strategies-deployment-types-in-enterprise/
---
<link rel="canonical" href="https://scalegrid.io/blog/postgresql-trends-most-popular-cloud-providers-languages-vacuum-query-management-strategies-deployment-types-in-enterprise/" />

<a href="https://scalegrid.io/blog/postgresql-trends-most-popular-cloud-providers-languages-vacuum-query-management-strategies-deployment-types-in-enterprise/"><img class="alignnone size-full wp-image-4689" src="https://scalegrid.io/blog/wp-content/uploads/2019/10/PostgreSQL-Trends-Most-Popular-Cloud-Providers-Languages-VACUUM-Query-Management-Strategies-Deployment-Types-in-Enterprise-ScaleGrid-Blog.jpg" alt="PostgreSQL Trends: Most Popular Cloud Providers, Languages, VACUUM, Query Management Strategies & Deployment Types in Enterprise" width="100%" height="auto" /></a>


<p style="text-align: justify;">PostgreSQL popularity is skyrocketing in the enterprise space. As this open source database continues to pull new users from expensive commercial database management systems like Oracle, DB2 and SQL Server, organizations are adopting new approaches and evolving their own to maintain the exceptional performance of their SQL deployments. We recently attended the <a style="color: #2da964;" href="https://postgresconf.org/" target="_blank">PostgresConf</a> event in San Jose to hear from the most active PostgreSQL user base on their database management strategies. In this latest <a style="color: #2da964;" href="https://scalegrid.io/blog/postgresql-trends-most-popular-cloud-providers-languages-vacuum-query-management-strategies-deployment-types-in-enterprise/" target="_blank">PostgreSQL trends report</a>, we analyze the most popular cloud providers for PostgreSQL, VACUUM strategies, query management strategies, and on-premises vs. public cloud use being leveraged by enterprise organizations.</p>

<h2 style="text-align: left; padding-top: 10px;">Most Popular Cloud Providers for PostgreSQL Hosting</h2>
<p style="text-align: justify;">Let’s start with the most popular cloud providers for <a style="color: #2da964;" href="https://scalegrid.io/postgresql.html" target="_blank">PostgreSQL hosting</a>. It comes as no surprise that the top three cloud providers in the world made up 100% of the PostgreSQL deployments in the crowd across this enterprise report. AWS, however, has taken a significant leap from our last report, where they now average 77.4% of PostgreSQL cloud use compared to <a style="color: #2da964;" href="https://scalegrid.io/blog/2019-postgresql-trends-report-private-vs-public-cloud-migrations-database-combinations-top-reasons-used/" target="_blank">55.0% in April</a>. AWS does offer a managed hosting service for PostgreSQL called Amazon RDS, but there are many other DBaaS solutions that offer <a style="color: #2da964;" href="https://scalegrid.io/postgresql/aws.html" target="_blank">PostgreSQL hosting on AWS</a>, such as ScaleGrid, that can provide multi-cloud support so you’re not locked in with a single cloud provider.</p>
<p style="text-align: justify; padding-bottom: 15px;">AWS was not the only cloud provider to grow - we found that 19.4% of PostgreSQL cloud deployments were hosted through Google Cloud Platform (GCP), growing 11% from April where they only averaged 17.5% of PostgreSQL hosting. This leaves our last cloud provider - Microsoft Azure, who represented 3.2% of PostgreSQL cloud deployments in this survey. This is one of the most shocking discoveries, as Azure was tied for second with GCP back in April, and is commonly a popular choice for enterprise organizations leveraging the Microsoft suite of services.</p>
<p style="text-align: justify;"><a href="https://scalegrid.io/blog/wp-content/uploads/2019/10/PostgreSQL-Trends-in-Enterprise-Most-Popular-Cloud-Providers-ScaleGrid-Report.jpg"><img class="alignnone size-full wp-image-4685" src="https://scalegrid.io/blog/wp-content/uploads/2019/10/PostgreSQL-Trends-in-Enterprise-Most-Popular-Cloud-Providers-ScaleGrid-Report.jpg" alt="PostgreSQL Trends in Enterprise: Most Popular Cloud Providers - AWS, GCP, Azure - ScaleGrid Blog" width="100%" height="auto" /></a></p>

<h2 style="text-align: left; padding-top: 15px;">Most Used Languages with PostgreSQL</h2>
<p style="text-align: justify;">This is a new analysis we surveyed to see which languages are most popularly used with PostgreSQL. The supported programming languages for PostgreSQL include .Net, C, C++, Delphi, Java, JavaScript (Node.js), Perl, PHP, Python and Tcl, but PostgreSQL can support many server-side procedural languages through its available extensions.</p>
<p style="text-align: justify;">We found that Java is the most popular programming language for PostgreSQL, being leveraged by 31.1% of enterprise organizations on average. PostgreSQL can be easily connected with Java programs through the popular open source PostgreSQL Java Database Connectivity (JBDC) Driver, also known as <a style="color: #2da964;" href="https://jdbc.postgresql.org/documentation/head/intro.html" target="_blank">PgJDBC</a>.</p>
<p style="text-align: justify;">Python was the second most popular programming language used with PostgreSQL, coming in close at an average of 28.9% use with PostgreSQL. Back in 2013, PostgreSQL <a style="color: #2da964;" href="https://www.postgresql.org/community/survey/87-what-external-programming-language-do-you-use-most-often-with-postgresql/" target="_blank">surveyed</a> their users to see which external programming languages was most often used with PostgreSQL, and found that Python only represented 10.5% of the results, showing a massive increase in popularity over the past six years.</p>
<p style="text-align: justify; padding-bottom: 15px;">The programming language C came in third place, averaging 20.0% use with PostgreSQL, followed by Go in fourth at 13.3%, PL/pgSQL in fifth at 11.1%, Ruby in sixth at 8.9% and both PHP and Perl in seventh at 4.4%. PHP was actually the most popular language used with PostgreSQL in 2013, representing almost half of the responses from their survey at 47.1% use. The last column, Other, was represented by C++, Node.js, Javascript, Spark, Swift, Kotlin, Typescript, C#, Scala, R, .NET, Rust and Haskell.</p>
<p style="text-align: justify;"><a href="https://scalegrid.io/blog/wp-content/uploads/2019/10/PostgreSQL-Trends-in-Enterprise-Most-Popular-Programming-Languages-ScaleGrid-Report.jpg"><img class="alignnone size-full wp-image-4686" src="https://scalegrid.io/blog/wp-content/uploads/2019/10/PostgreSQL-Trends-in-Enterprise-Most-Popular-Programming-Languages-ScaleGrid-Report.jpg" alt="PostgreSQL Enterprise Trends: Most Popular Programming Languages - Java, Python, C, Go, PL/pgSQL - ScaleGrid Blog" width="100%" height="auto" /></a></p>

<h2 style="text-align: left; padding-top: 15px;">Most Popular PostgreSQL VACUUM Strategies</h2>
<p style="text-align: justify;"><a style="color: #2da964;" href="https://www.postgresql.org/docs/9.1/sql-vacuum.html" target="_blank">PostgreSQL VACUUM</a> is a technique to remove tuples that have been deleted or are now obsolete from their table to reclaim storage occupied by those dead tuples, also known as Bloat. VACUUM is an important process to maintain, especially for frequently-updated tables before it starts affecting your PostgreSQL performance. In our survey, we asked enterprise PostgreSQL users how they are handling VACUUM to see what the most popular approaches are.</p>
<p style="text-align: justify;">The most popular process for PostgreSQL VACUUM is the built-in <a style="color: #2da964;" href="https://www.postgresql.org/docs/9.5/routine-vacuuming.html#AUTOVACUUM" target="_blank">autovacuum</a>, being leveraged by 37.5% of enterprise organizations on average. The autovacuum daemon is optional, but highly recommended in the PostgreSQL community, at it automates both VACUUM and ANALYZE commands, continuously checking tables for deal tuples. While highly recommended, 33.3% of PostgreSQL users prefer to manually perform VACUUM in the enterprise space. <a style="color: #2da964;" href="http://fibrevillage.com/database/305-postgresql-common-vacuum-and-autovacuum-problems" target="_blank">Fibrevillage</a> has a great article that outlines these common problems with autovacuum which may cause an organization to adopt a manual strategy:</p>

<ul style="text-align: left;">
	<li>autovacuum may run even when turned off to deal with transaction ID wraparound.</li>
	<li>autovacuum is constantly running, which makes it start over every time it runs out of space, and start a new worker for each database in your cluster.</li>
	<li>autovacuum can cause out of memory errors.</li>
	<li>autovacuum may have trouble keeping up on a busy server.</li>
	<li>autovacuum can easily consume too much I/O capacity.</li>
</ul>
<p style="text-align: justify; padding-bottom: 15px;">Another surprising discovery was that 18.8% of organizations do not use VACUUM, as it is not yet needed. This may be because they are leveraging PostgreSQL in small applications or applications that are not frequently updated. 6.6% of organizations have developed a custom solution for PostgreSQL VACUUM, and 4.2% are in the process of planning their VACUUM strategy.</p>
<p style="text-align: justify;"><a href="https://scalegrid.io/blog/wp-content/uploads/2019/10/PostgreSQL-Trends-in-Enterprise-Most-Popular-VACUUM-Strategies-ScaleGrid-Report.jpg"><img class="alignnone size-full wp-image-4687" src="https://scalegrid.io/blog/wp-content/uploads/2019/10/PostgreSQL-Trends-in-Enterprise-Most-Popular-VACUUM-Strategies-ScaleGrid-Report.jpg" alt="PostgreSQL Enterprise Trends: Most Popular VACUUM Strategies - Autovacuum, Manual, Planning - ScaleGrid Blog" width="100%" height="auto" /></a></p>

<h2 style="text-align: left; padding-top: 15px;">Most Popular PostgreSQL Slow Query Management Strategies</h2>
<p style="text-align: justify;">If you’re working with PostgreSQL, you likely know that <a style="color: #2da964;" href="https://scalegrid.io/blog/latest-postgresql-trends-most-time-consuming-tasks-important-metrics-to-track/" target="_blank">managing queries is the #1 most time-consuming task</a>. It’s a critical process with many aspects to consider, starting at developing a query plan to match your query structure with your data properties, to then analyzing slow-running queries, finally to optimizing those queries through performance tuning.</p>
<p style="text-align: justify;">We found that 54.3% of PostgreSQL users are manually managing slow queries in enterprise organizations. This can be accomplished through their modules <a style="color: #2da964;" href="https://www.postgresql.org/docs/9.2/auto-explain.html" target="_blank">auto_explain</a> and <a style="color: #2da964;" href="https://www.postgresql.org/docs/9.4/pgstatstatements.html" target="_blank">pg_stat_statements</a>, checking <a style="color: #2da964;" href="https://www.postgresql.org/docs/9.2/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW" target="_blank">pg_stat_activity</a> for table and index activity on your server, analyzing the slow query log, or reviewing in your code.</p>
<p style="text-align: justify;">On average, 21.7% of enterprise organizations are leveraging a monitoring tool to analyze and manage their PostgreSQL slow queries. This helps them significantly reduce the time it takes to identify which queries are running the slowest, most frequently, causing the most read or write load on your system, or queries missing an index by examining the rows.</p>
<p style="text-align: justify; padding-bottom: 15px;">17.4% of users, however, are not actively managing slow queries in the PostgreSQL deployments. We highly recommend adopting a query management strategy to ensure slow queries are not affecting the performance of your PostgreSQL deployments. 4.3% of users are currently in the process of planning their query management strategy, and 2.2% have developed a custom solution for managing their slow queries.</p>
<p style="text-align: justify;"><a href="https://scalegrid.io/blog/wp-content/uploads/2019/10/PostgreSQL-Trends-in-Enterprise-Most-Popular-Slow-Query-Management-Strategies-ScaleGrid-Report.jpg"><img class="alignnone size-full wp-image-4688" src="https://scalegrid.io/blog/wp-content/uploads/2019/10/PostgreSQL-Trends-in-Enterprise-Most-Popular-Slow-Query-Management-Strategies-ScaleGrid-Report.jpg" alt="PostgreSQL Enterprise Trends - Most Popular Slow Query Management Strategies - Manual, Monitoring, Planning - ScaleGrid Blog" width="100%" height="auto" /></a></p>

<h2 style="text-align: left; padding-top: 15px;">PostgreSQL Cloud vs. On-Premises Deployments</h2>
<p style="text-align: justify;">Let’s end with one of the hottest topics in the PostgreSQL enterprise space - whether to deploy PostgreSQL in the cloud or on-premises. We’ve been actively monitoring this trend all year, and found that 59.6% of PostgreSQL deployments were strictly on-premises back in April from our <a style="color: #2da964;" href="https://scalegrid.io/blog/2019-postgresql-trends-report-private-vs-public-cloud-migrations-database-combinations-top-reasons-used/" target="_blank">2019 PostgreSQL Trends Report</a> and 55.8% on-premises in our <a style="color: #2da964;" href="https://scalegrid.io/blog/2019-open-source-database-report-top-databases-public-cloud-vs-on-premise-polyglot-persistence/" target="_blank">2019 Open Source Database Report</a> just a few months ago in June.</p>
<p style="text-align: justify;">Now, in this most recent report, we found that PostgreSQL on-premises deployments have decreased by 40% since April of 2019. On average, only 35.6% of PostgreSQL enterprise organizations are deploying exclusively on-premise. But organizations are not migrating their on-premises deployments altogether - 24.4% of PostgreSQL deployments were found to be leveraging a hybrid cloud environment. Hybrid clouds are a mix of on-premises, private cloud, and/or public cloud computing to support their applications and data. This is a significant increase from what we saw in April, jumping from 5.6% of PostgreSQL deployments up to 24.4% in September.</p>
<p style="text-align: justify;">Hybrid cloud deployments are becoming more popular across the board - this <a style="color: #2da964;" href="https://www.computerweekly.com/microscope/news/252471343/Private-cloud-infrastructure-spending-holding-steady" target="_blank">recent report</a> found that 57% of businesses opt for a hybrid cloud environment using both private and public clouds as places to store their data. While we see a large jump to the cloud, enterprise organizations are still leveraging on-premises environments in some capacity 60% of the time, compared to 65.2% in April. Lastly, we found that public cloud PostgreSQL deployments have grown 15% since April, now averaging 34.8% use by enterprise organizations.</p>
<p style="text-align: justify; padding-bottom: 15px;">It’s also important to note that this survey was conducted at the PostgresConf Silicon Valley event, while our April survey was conducted in New York City. The bay area is widely known for adopting new technologies, which allows us to hypothesize that this market has a higher cloud adoption rate than the east coast.</p>

<table class=" alignleft" width="100%">
<tbody>
<tr style="border-bottom: 1px solid black;">
<td style="width: 39%; border-right: 1px solid rgba(0,0,0,.1); padding: 8px;"><b>PostgreSQL Deployment Types</b></td>
<td style="width: 12%; padding: 8px;"><b>Apr</b></td>
<td style="width: 12%; padding: 8px; border-left: 1px solid rgba(0,0,0,.1); border-right: 1px solid rgba(0,0,0,.1);"><b>Jun</b></td>
<td style="width: 12%; padding: 8px;"><b>Sep</b></td>
<td style="width: 25%; padding: 8px; border-left: 1px solid rgba(0,0,0,.1);"><b>Apr-Sep Growth</b></td>
</tr>
<tr>
<td style="background-color: #f3f9ff; border-right: 1px solid rgba(0,0,0,.1); padding: 8px;"><b>On-Premises</b></td>
<td style="background-color: #f3f9ff; padding: 8px;">59.6%</td>
<td style="background-color: #f3f9ff; padding: 8px; border-left: 1px solid rgba(0,0,0,.1); border-right: 1px solid rgba(0,0,0,.1);">55.8%</td>
<td style="background-color: #f3f9ff; padding: 8px;">35.6%</td>
<td style="background-color: #f3f9ff; padding: 8px; border-left: 1px solid rgba(0,0,0,.1);">-40.0%</td>
</tr>
<tr>
<td style="border-right: 1px solid rgba(0,0,0,.1); padding: 8px;"><b>Hybrid Cloud</b></td>
<td style="padding: 8px;">5.6%</td>
<td style="padding: 8px; border-left: 1px solid rgba(0,0,0,.1); border-right: 1px solid rgba(0,0,0,.1);">16.3%</td>
<td style="padding: 8px;">24.4%</td>
<td style="padding: 8px; border-left: 1px solid rgba(0,0,0,.1);">336%</td>
</tr>
<tr>
<td style="background-color: #f3f9ff; border-right: 1px solid rgba(0,0,0,.1); padding: 8px;"><b>Public Cloud</b></td>
<td style="background-color: #f3f9ff; padding: 8px;">34.8%</td>
<td style="background-color: #f3f9ff; padding: 8px; border-left: 1px solid rgba(0,0,0,.1); border-right: 1px solid rgba(0,0,0,.1);">27.9%</td>
<td style="background-color: #f3f9ff; padding: 8px;">40.0%</td>
<td style="background-color: #f3f9ff; padding: 8px; border-left: 1px solid rgba(0,0,0,.1);">15.0%</td>
</tr>
</tbody>
</table>
&nbsp;

<a href="https://scalegrid.io/blog/wp-content/uploads/2019/10/PostgreSQL-Deployment-Trends-in-Enterprise-On-Premises-vs-Public-Cloud-vs-Hybrid-Cloud-ScaleGrid-Report.jpg"><img class="alignnone size-full wp-image-4689" src="https://scalegrid.io/blog/wp-content/uploads/2019/10/PostgreSQL-Deployment-Trends-in-Enterprise-On-Premises-vs-Public-Cloud-vs-Hybrid-Cloud-ScaleGrid-Report.jpg" alt="PostgreSQL Enterprise Deployment Trends: On-Premises vs Public Cloud vs Hybrid Cloud - ScaleGrid Blog" width="100%" height="auto" /></a>

<p style="text-align: justify; padding: 15px 0px;">So, how do these results stack up to your PostgreSQL deployments and strategies? We’d love to hear your thoughts, leave a comment here or send us a tweet at <a style="color: #2da964;" href="https://twitter.com/scalegridio" target="_blank">@scalegridio</a>.</p>