Skip to main content
Cloud / Azure / Products / Azure Cosmos DB for PostgreSQL - Distributed PostgreSQL on Azure

Azure Cosmos DB for PostgreSQL - Distributed PostgreSQL on Azure

Azure Cosmos DB for PostgreSQL is a fully managed distributed PostgreSQL service (based on Citus) for horizontal scaling of relational database workloads.

databases
This service is deprecated or retired

Azure Cosmos DB for PostgreSQL will be retired on March 31, 2029 and is no longer recommended by Microsoft for new projects. The migration target is Azure Database for PostgreSQL with Elastic Clusters.

Pricing Model vCore-based (Coordinator + Worker Nodes)
Availability Global, EU regions
Data Sovereignty EU regions available
Reliability 99.99% SLA

Notice: According to Microsoft, Azure Cosmos DB for PostgreSQL is on a retirement path and is no longer recommended for new projects. The service will be retired on March 31, 2029. For PostgreSQL workloads Microsoft points to Azure Database for PostgreSQL with Elastic Clusters (also Citus-based), and for NoSQL workloads to Azure Cosmos DB for NoSQL.

Azure Cosmos DB for PostgreSQL is Microsoft’s solution for horizontal scaling of relational databases on a PostgreSQL foundation. The service was previously known as “Azure Database for PostgreSQL – Hyperscale (Citus)” and was repositioned under the Cosmos DB brand in 2022. At its core, it is based on the open-source Citus extension that Microsoft acquired.

Citus Architecture: Distributed PostgreSQL

The foundation of Cosmos DB for PostgreSQL is the Citus extension for PostgreSQL. Citus adds a horizontal sharding model to PostgreSQL: data is distributed across multiple worker nodes based on a defined shard column. A coordinator node accepts queries, analyzes the query plan, and coordinates parallel execution across the worker nodes. From the application’s perspective, the coordinator looks like an ordinary PostgreSQL instance, ensuring compatibility with existing applications and tools. PostgreSQL extensions, stored procedures, and standard SQL syntax work unchanged as long as queries are formulated in a shard-aware manner.

This model enables horizontal scaling for workloads that would hit limits on a single PostgreSQL server: multi-tenant SaaS applications with millions of tenants, time-series databases with high write throughput, or analytics workloads on large data volumes. As a managed service, Microsoft handles patching, backups, high availability with automatic failover, and monitoring.

Use Cases: Multi-Tenant and Analytics

Two architecture patterns dominate the use of Cosmos DB for PostgreSQL. The first is multi-tenant SaaS architecture: the tenant ID serves as the shard column, so all data for a tenant resides on the same worker node. This enables efficient queries within a tenant and simple data isolation. The second pattern is time-series data and analytics: the distributed write throughput allows very high ingestion rates, and parallel aggregation queries across all worker nodes benefit from horizontal scaling. For standard OLTP workloads with predictable access patterns, Azure Database for PostgreSQL Flexible Server is the simpler and often sufficient alternative.

Typical Use Cases

Horizontal scaling of PostgreSQL databases
Multi-tenant SaaS applications
Time-series data and analytics on PostgreSQL
Geo-distributed databases

Frequently Asked Questions

What is the difference from Azure Database for PostgreSQL Flexible Server?

Azure Database for PostgreSQL Flexible Server is a managed single-node PostgreSQL service for standard workloads. Cosmos DB for PostgreSQL (Citus) is a distributed cluster with multiple worker nodes that scales horizontally. For most applications, Flexible Server is sufficient; Cosmos DB for PostgreSQL is suited for very large data volumes and high-load scenarios.

What is Citus and how does sharding work?

Citus is an open-source PostgreSQL extension that distributes data across multiple worker nodes. A table is split into shards based on a shard column. The coordinator node receives queries, identifies the relevant shards, and coordinates parallel execution across the worker nodes.

Is Cosmos DB for PostgreSQL fully PostgreSQL-compatible?

Largely yes. Since it is a PostgreSQL extension, standard SQL queries, transactions, and many PostgreSQL features work. Some operations (e.g., cross-shard JOINs without a shard column) require query adjustments.

Note: All product information on this page has been compiled with care, but is provided without guarantee and may be outdated or incomplete. Cloud services evolve rapidly — features, pricing, SLAs, and availability change frequently. Authoritative and up-to-date information can only be found on the official product page of Azure (official documentation). This page does not represent an offer by Azure.

Microsoft Solutions Partner

innFactory is a Microsoft Solutions Partner. We provide expert consulting, implementation, and managed services for Azure.

Microsoft Solutions Partner Microsoft Data & AI

Similar Products from Other Clouds

Other cloud providers offer comparable services in this category. As a multi-cloud partner, we help you choose the right solution.

Google Cloud

Database Center - Fleet View for Google Cloud Databases

Database Center is an AI-assisted dashboard that gives you one centralized view across your entire Google Cloud database …

Pricing Pricing as published by the provider; …
SLA SLA as published by the provider
Compare →
Google Cloud

Oracle Database@Google Cloud - Oracle Databases in Google Cloud

Oracle Database@Google Cloud runs Oracle database services on OCI Exadata hardware inside Google Cloud data centers, …

Pricing Public offer (pay-as-you-go) at public …
SLA SLA as published by the provider
Compare →
AWS

Amazon Neptune Analytics: In-Memory Graph Analytics

Amazon Neptune Analytics analyzes large graph datasets in memory, with graph algorithms, openCypher queries, and vector …

Pricing Billed in m-NCUs (memory Neptune …
SLA SLA per provider (see official SLA page)
Compare →
STACKIT

STACKIT Key Value Store - Managed Valkey Service

STACKIT Key Value Store: fully managed Valkey instances with replica-set high availability, persistence, and TLS. …

Pricing Billed by selected service plan (see …
SLA SLA as published by the provider
Compare →
Google Cloud

AlloyDB for PostgreSQL: Enterprise Database

AlloyDB is a managed, PostgreSQL-compatible database for enterprise workloads, with a columnar engine and ScaNN vector …

Pricing Resource-based (vCPU, RAM, storage) with …
SLA 99.99% including maintenance windows
Compare →
Google Cloud

AlloyDB Omni - Self-Managed PostgreSQL

AlloyDB Omni: downloadable, self-managed AlloyDB edition for PostgreSQL. Runs on-premises, at the edge and in any cloud, …

Pricing Subscription per vCPU (paid editions) …
SLA N/A (self-managed, depends on your own infrastructure)
Compare →

35 comparable products found across other clouds.

Ready to start with Azure Cosmos DB for PostgreSQL - Distributed PostgreSQL on Azure?

Our certified Azure experts help you with architecture, integration, and optimization.

Schedule Consultation