PostgreSQL
activeby PostgreSQL Global Development Group · since 1996 · also known as Postgres, pg
The extensible, standards-first open-source relational database.
Overview
PostgreSQL is a mature, community-governed object-relational database known for correctness, rich SQL, and an unmatched extension ecosystem. Beyond classic OLTP it handles JSON documents (JSONB), geospatial (PostGIS), vectors (pgvector), time-series (TimescaleDB) and full-text search, which is why many teams default to it and only reach for a specialised store when they outgrow it. It has become the base engine for a large family of cloud and distributed databases. PostgreSQL 19 reached release candidate in October 2026, with general availability scheduled for November 2026; 18.x is the current stable line.
Strengths & trade-offs
Strengths
- +Rock-solid ACID semantics and SQL standards compliance
- +Huge extension ecosystem: PostGIS, pgvector, TimescaleDB, Citus, pg_duckdb
- +JSONB gives document-store flexibility inside a relational database
- +Available as a managed service on virtually every cloud
- +Permissive license with no single-vendor control
Trade-offs
- −No built-in horizontal write scaling
- −Process-per-connection model needs a pooler (PgBouncer) at high concurrency
- −VACUUM and bloat management require operational care
- −Major-version upgrades need pg_upgrade or logical replication
Great for
- +General-purpose application backend
- +SaaS multi-tenant data
- +Geospatial applications with PostGIS
- +Semantic search alongside relational data with pgvector
- +Financial and inventory systems needing strict integrity
Think twice for
- −Petabyte-scale analytics (use a columnar warehouse)
- −Ultra-low-latency caching
- −Massive write fan-out across regions
Capabilities
Native or official first-party support · 16 of 25 tracked
Scale & consistency
- Comfortable data size
- Medium · ≤ 10 TB
- Horizontal scaling
- Addon
- Multi-region
- Read replicas
- Transactions
- Full ACID
- Consistency
- Strong
- Schema
- Strict
- Architecture
- Single node, Primary replica, Client server
- Query languages
- SQL, PL/pgSQL
Scales vertically and with read replicas; horizontal write scaling needs Citus or a distributed Postgres-compatible system.
Deployment
available on · AWS · Google Cloud · Azure · Oracle Cloud · IBM Cloud · Alibaba Cloud · DigitalOcean · Heroku · Render · Railway · Aiven · Fly.io
Ecosystem
Alternatives to PostgreSQL
The web's default open-source SQL database, now on calendar versioning with 9.7 as the LTS line.
postgresql vs mysql →Community-led MySQL fork with extra storage engines, built-in Galera and a faster feature cadence.
postgresql vs mariadb →Postgres-wire distributed SQL built to survive node, zone and region failures with serializable transactions.
postgresql vs cockroachdb →Apache-licensed distributed SQL that reuses the PostgreSQL query layer on a Raft-replicated storage engine.
postgresql vs yugabytedb →Serverless Postgres with copy-on-write branching and scale-to-zero, now part of Databricks.
postgresql vs neon →Microsoft's flagship RDBMS: T-SQL, columnstore, Always On, and now native vectors and JSON.
postgresql vs sql-server →PostgreSQL FAQ
What is PostgreSQL?
PostgreSQL is a relational database by PostgreSQL Global Development Group, first released in 1996. PostgreSQL is a mature, community-governed object-relational database known for correctness, rich SQL, and an unmatched extension ecosystem. Beyond classic OLTP it handles JSON documents (JSONB), geospatial (PostGIS), vectors (pgvector), time-series (TimescaleDB) and full-text search, which is why many teams default to it and only reach for a specialised store when they outgrow it. It has become the base engine for a large family of cloud and distributed databases. PostgreSQL 19 reached release candidate in October 2026, with general availability scheduled for November 2026; 18.x is the current stable line.
Is PostgreSQL open source?
Yes. PostgreSQL is open source. License: PostgreSQL License.
Does PostgreSQL support ACID transactions?
Yes. PostgreSQL supports full ACID transactions, with strong consistency.
Does PostgreSQL scale horizontally?
PostgreSQL scales horizontally through an official extension, proxy or edition rather than in the core engine. It is comfortable at medium scale (≤ 10 TB). It supports cross-region read replicas.
How can I run PostgreSQL?
You can self-host it. Managed offerings include Amazon RDS for PostgreSQL, Cloud SQL for PostgreSQL, Azure Database for PostgreSQL and Neon. It is available on AWS, Google Cloud, Azure, Oracle Cloud and IBM Cloud.
What is PostgreSQL best for?
PostgreSQL is a strong fit for general-purpose application backend, SaaS multi-tenant data and geospatial applications with PostGIS. Think twice for petabyte-scale analytics (use a columnar warehouse).
What are the best alternatives to PostgreSQL?
Common alternatives to PostgreSQL include MySQL, MariaDB, CockroachDB, YugabyteDB and Neon. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is PostgreSQL?
PostgreSQL ranks #1 of 844 databases on the WhichDB Score (93.2/100), and #1 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.
