What is Azure Database for PostgreSQL?

We look at Microsoft's cloud implementation of the open source database

Abstract image of stacked white discs on a green background to symbolise a database

PostgreSQL is the most advanced open source database system and it's used by a number of organisations to run mission-critical workloads – including Microsoft's Azure cloud service.

However, the Azure Database for PostgreSQL is a slightly different story. 

Known as a managed implementation of a service running on Azure cloud infrastructure, Azure Database for PostgreSQL allows customers to quickly develop applications using PostgreSQL, as well as the native tools, drivers, and libraries which are attached to it, without the need to take control of the instances. 

Users can deploy it either as a Single Server or Hyperscale (Citus) which is currently in preview mode, pending full release. 

Azure Database for PostgreSQL – Single Server

The Single Server model is the primary deployment method for PostgreSQL databases on Azure. The configuration strongly resembles PostgreSQL and in its on-premise version, users can mockup a single PostgreSQL server as the main host for multiple databases.

What is more, it is also a fully managed service which offers a 99.99% performance guarantee and includes built-in back as well as numerous encryption features.

Similarly to the majority of the cloud tools offered by Microsoft, the configuration can be done in the Azure portal as well as the Azure CLI. Moreover, the single server option allows developers to host a single database per server, meaning that they are able to maximise resource usage or even share these resources with multiple databases. 

Unfortunately to some, Azure Database for PostgreSQL admins do not have full superuser permissions. The user who holds the highest-privilege role available in the service is the azure_pg_admin. The superuser attributes are assigned to the azure_superuser, a role belonging to the managed service. 

Service users are not able to access this role or its associated privileges

Azure Database for PostgreSQL - Hyperscale (Citus) (preview)

If you have a database which is over 100GB and requires maximum performance, you might want to consider Azure's newest PostgreSQL deployment model. Also known as the 'Hyperscale (Citus) (preview)' hosting type, this method uses technology from Citus Data, a company that Microsoft acquired in January 2019.

Hyperscale (Citus) uses database sharding technology, which splits data into smaller component parts and distributes them across a large number of compute nodes which are grouped together into a cluster. This cluster offers more storage capacity and CPU utilisation than a standard single-server PostgreSQL deployment would be able to.

Big companies like Facebook and Google use database sharding within their data centres, but one of the advantages of Hyperscale (Citus) is that sharding is handled automatically, without the tenant application needing to be taught how to do it. The system parallelises SQL queries and other operations across available servers, with a central 'coordinator node' handling query routing, aggregation and planning, and 'worker nodes' storing data.

When the coordinator receives a request from the application, it routes the query to the relevant worker node(s), depending on where the data in question is stored. Caveat emptor, however; as Hyperscale (Citus) is in public preview, it does not offer an SLA at the time of writing.

Related Resource

Understanding your open source risk

Open source libraries can introduce vulnerabilities to your code

Download now


There are three pricing tiers available for the single server version of Azure Database for PostgreSQL, with each setting out the various provisions that a customer may expect from these packages. These are termed Basic, General Purpose, and Memory Optimised.

While all tiers offer computing power provisioned in virtual cores, or vCores, and each uses fifth-generation chips based on Intel’s Broadwell 2.3 GHz processors, the number of cores and the memory available varies. 

The entry-level tier, for instance, offers either one or two rentable vCores, combined with 2GB memory, for £0.026 per hour and £0.051 per hour each. General Purpose and Memory Optimised configuration both offer far more memory and vCores, and are priced more steeply, with the maximum configuration available for £4.179 per hour. 

Elements of the servers’ configuration can be changed and adjusted after they’re established, however, and there are a number of factors which combine to influence how much the system will end up costing. You could, for example, ramp up the number of vCores deployed, the storage capacity, and the length of time that backups are retained. Users can also interchange between the different pricing tiers, between General Purpose and Memory Optimised setups, for example.

The final pricing also depends on the type of package you take out and how you want to pay for it, whether it be pay as you go, or annual billing, which generally cost less as you pay more upfront. This annual discounting is not available on the basic level, however. The full breakdown of available tiers is listed below, with fuller pricing information available on through Microsoft.


Understanding the tiers

Pricing tierBasicGeneral PurposeMemory Optimised
Compute generationGen 5Gen 5Gen 5
vCores1, 22, 4, 8, 16, 32, 642, 4, 8, 16, 32
Memory per vCore2GB10GB20GB
Storage capacityUp to 1TBUp to 16TBUp to 16TB
Storage typeAzure Standard StorageAzure Premium StorageAzure Premium Storage

Each tier provides a free back up of up to 100% of your provisioned server storage. You can increase your backup retention period, however, this will increase the amount of backup storage consumed by the server, and so you will be charged extra.


The entry-level tier is primarily designed for low-priority workloads that don't require a great deal of performance. This can include test/dev environments or intermittently-accessed applications.

General Purpose

As the name suggests, the general-purpose tier is where most workloads will naturally fall, and encompasses most enterprise PostgreSQL use-cases. It offers a balance of performance and economy.

Memory Optimised

The highest tier is reserved for applications like financial transaction databases or analytics engines where low latency is paramount. For this reason, it makes heavy use of in-memory computing.

While the Basic tier does not provide an IOPS guarantee, other tiers have IOPS scale with the provisioned storage size in a 3:1 ratio.

Related Resource

Understanding your open source risk

Open source libraries can introduce vulnerabilities to your code

Download now

Benefits of Azure Database for PostgreSQL

The database cloud service has a number of advantages.

Built-in high availability: The service provides built-in high availability with no additional setup, configuration or extra cost. This means there is no need to set up further virtual machines and configure replication to guarantee high availability for a PostgreSQL database.

Security: All data including backups are encrypted on disk by default. Also, the service has SSL enabled by default, so all data in-transit is encrypted.

Scalability: The service allows users to scale compute on the fly without application downtime in one step.

Automated backups: Users do not need to independently manage storage for backups. The service offers up to 35 days retention for automated backup.

Featured Resources

Unleashing the power of AI initiatives with the right infrastructure

What key infrastructure requirements are needed to implement AI effectively?

Download now

Achieve today. Plan tomorrow. Making the hybrid multi-cloud journey

A Veritas webinar on implementing a hybrid multi-cloud strategy

Download now

A buyer’s guide for cloud-based phone solutions

Finding the right phone system for your modern business

Download now

The workers' experience report

How technology can spark motivation, enhance productivity and strengthen security

Download now


Microsoft unveils its new retail-focused cloud service

Microsoft unveils its new retail-focused cloud service

14 Jan 2021
Private cloud investment boosting hybrid cloud push
hybrid cloud

Private cloud investment boosting hybrid cloud push

14 Jan 2021
Getting started with Azure Red Hat OpenShift

Getting started with Azure Red Hat OpenShift

6 Jan 2021
Cloudflare launches web hosting service Cloudflare Pages
web development

Cloudflare launches web hosting service Cloudflare Pages

18 Dec 2020

Most Popular

WhatsApp could face €50 million GDPR fine
General Data Protection Regulation (GDPR)

WhatsApp could face €50 million GDPR fine

25 Jan 2021
How to move Windows 10 from your old hard drive to SSD
operating systems

How to move Windows 10 from your old hard drive to SSD

21 Jan 2021
What is a 502 bad gateway and how do you fix it?
web hosting

What is a 502 bad gateway and how do you fix it?

12 Jan 2021