vs

CockroachDB vs pgEdge

CockroachDB: Postgres-wire distributed SQL built to survive node, zone and region failures with serializable transactions. pgEdge: Fully open-source multi-master distributed PostgreSQL built on the Spock logical replication extension.

key differences

  • Licensing: CockroachDB is source-available (CockroachDB Software License); pgEdge is open source (permissive) (PostgreSQL License).
  • CockroachDB is built for larger datasets (≤ 1 PB) than pgEdge (≤ 10 TB).
  • Horizontal scaling is native in CockroachDB and manual in pgEdge.
  • Only CockroachDB has ttl / expiry, compression, encryption at rest, time travel, online schema changes.
  • CockroachDB has a serverless option; pgEdge does not.

choose cockroachdb for

  • +Global payments and ledger systems of record
  • +Identity, account and session metadata across regions
  • +Inventory and order management with strict consistency
  • +Data-residency workloads that must pin rows to a country

best at · OLTP, Geo, Metadata

choose pgedge for

  • +Multi-region active-active applications with low local latency
  • +Edge deployments that must keep writing during network partitions
  • +Zero-downtime major-version upgrades via logical replication
  • +Data residency setups with regional write nodes

best at · OLTP, Edge, Geo

overview
Primary model
Relational
Relational
Also supports
Document, Spatial, Vector
Document, Vector, Spatial
Type
Database engine
Database engine
Status
Active
Active
Developer
Cockroach Labs
pgEdge, Inc.
First release
2015
2023
Latest version
26.3 (Aug 19, 2026)
Spock 5.0.13 (Oct 7, 2026)
License
Source-availableCockroachDB Software License
Open source (permissive)PostgreSQL License
Free tier
✓
✓
popularity
WhichDB Score
47.1
10.1
Rank
#33
#302
GitHub stars
32.6K
759
Stack Overflow questions
467
–
scale & guarantees
Comfortable data size
Large (≤ 1 PB)
Medium (≤ 10 TB)
Horizontal scaling
Native
Manual
Multi-region
Active active
Active active
ACID
Full
Full
Consistency
Strong
Eventual, Strong
Schema
Strict
Strict
Architecture
Distributed, Multi primary, Client server, Serverless
Multi primary, Distributed, Client server
deployment
Self-hosted
✓
✓
Vendor-managed cloud
✓
✓
Serverless
✓
—
Embedded
—
—
Edge
—
—
Clouds
AWS, Google Cloud, Azure
AWS, Azure, Google Cloud
capabilities
Transactions
✓
✓
Joins
✓
✓
Secondary indexes
✓
✓
Full-text search
✓
✓
Vector search
✓
✓
Geospatial
✓
✓
JSON
✓
✓
Change data capture
✓
✓
Triggers
✓
✓
Stored procedures
✓
✓
Materialized views
✓
✓
TTL / expiry
✓
—
Pub/Sub
—
—
Columnar storage
—
—
In-memory
—
—
Durable persistence
✓
✓
Compression
✓
—
Encryption at rest
✓
—
Role-based access
✓
✓
Time travel
✓
—
Branching
—
—
Online schema changes
✓
—
Streaming ingest
—
—
Offline sync
—
—
Runs in WebAssembly
—
—
interfaces
Query languages
SQL, PL/pgSQL
SQL, PL/pgSQL
Client languages
Java, Go, Python, JavaScript, C#, Ruby, Rust, PHP
C, Java, Python, JavaScript, Go, Rust, C#
Best for
OLTP, Geo, Metadata, Ledger
OLTP, Edge, Geo

CockroachDB vs pgEdge: FAQ

What is the difference between CockroachDB and pgEdge?

CockroachDB: Postgres-wire distributed SQL built to survive node, zone and region failures with serializable transactions. pgEdge: Fully open-source multi-master distributed PostgreSQL built on the Spock logical replication extension. Licensing: CockroachDB is source-available (CockroachDB Software License); pgEdge is open source (permissive) (PostgreSQL License). CockroachDB is built for larger datasets (≤ 1 PB) than pgEdge (≤ 10 TB). Horizontal scaling is native in CockroachDB and manual in pgEdge.

When should I choose CockroachDB over pgEdge?

Choose CockroachDB for global payments and ledger systems of record; identity, account and session metadata across regions; and inventory and order management with strict consistency. Choose pgEdge for multi-region active-active applications with low local latency, edge deployments that must keep writing during network partitions and zero-downtime major-version upgrades via logical replication.

Is CockroachDB or pgEdge more popular?

CockroachDB ranks #33 on the WhichDB Score (47.1/100) and pgEdge ranks #302 (10.1/100). Popularity is not fit: check the requirements that matter for your project.

Are CockroachDB and pgEdge open source?

Not in the OSI sense. CockroachDB is source-available: you can read the code, but the license restricts some uses, typically offering it as a competing managed service. License: CockroachDB Software License. Yes. pgEdge is open source. License: PostgreSQL License.