DB-EnginesExtremeDB: benchmark about the mission critical dbmsEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > CockroachDB vs. PostgreSQL

System Properties Comparison CockroachDB vs. PostgreSQL

Please select another system to include it in the comparison.

Our visitors often compare CockroachDB and PostgreSQL with YugabyteDB, MySQL and MongoDB.

Editorial information provided by DB-Engines
NameCockroachDB  Xexclude from comparisonPostgreSQL  Xexclude from comparison
DescriptionCockroachDB is a distributed database architected for modern cloud applications. It is wire compatible with PostgreSQL and backed by a Key-Value Store, which is either RocksDB or a purpose-built derivative, called Pebble.Widely used open source RDBMS infoDeveloped as objectoriented DBMS (Postgres), gradually enhanced with 'standards' like SQL
Primary database modelRelational DBMSRelational DBMS infowith object oriented extensions, e.g.: user defined types/functions and inheritance. Handling of key/value pairs with hstore module.
Secondary database modelsDocument store
Graph DBMS infowith Apache Age
Spatial DBMS
Vector DBMS infowith pgvector extension
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score6.60
Rank#61  Overall
#35  Relational DBMS
Score638.82
Rank#4  Overall
#4  Relational DBMS
Websitewww.cockroachlabs.comwww.postgresql.org
Technical documentationwww.cockroachlabs.com/­docswww.postgresql.org/­docs
DeveloperCockroach LabsPostgreSQL Global Development Group infowww.postgresql.org/­developer
Initial release20151989 info1989: Postgres, 1996: PostgreSQL
Current release23.1.1, May 202316.0, September 2023
License infoCommercial or Open SourceOpen Source infoApache 2.0, commercial license availableOpen Source infoBSD
Cloud-based only infoOnly available as a cloud servicenono
DBaaS offerings (sponsored links) infoDatabase as a Service

Providers of DBaaS offerings, please contact us to be listed.
CockroachDB: A cloud-native, distributed SQL database designed for speed, scale, and survival. Get started for free today with a fully-managed CockroachDB cluster -- leave operations behind and get your app to market faster.Aiven for PostgreSQL: Fully managed PostgreSQL for developers with 70+ extensions and flexible orchestration tools.
Implementation languageGoC
Server operating systemsLinux
macOS
Windows
FreeBSD
HP-UX
Linux
NetBSD
OpenBSD
OS X
Solaris
Unix
Windows
Data schemedynamic schemayes
Typing infopredefined data types such as float or dateyesyes
XML support infoSome form of processing data in XML format, e.g. support for XML data structures, and/or support for XPath, XQuery or XSLT.noyes infospecific XML-type available, but no XML query functionality.
Secondary indexesyesyes
SQL infoSupport of SQLyes, wire compatible with PostgreSQLyes infostandard with numerous extensions
APIs and other access methodsJDBCADO.NET
JDBC
native C library
ODBC
streaming API for large objects
Supported programming languagesC#
C++
Clojure
Go
Java
JavaScript (Node.js)
PHP
Python
Ruby
Rust
.Net
C
C++
Delphi
Java infoJDBC
JavaScript (Node.js)
Perl
PHP
Python
Tcl
Server-side scripts infoStored proceduresnouser defined functions inforealized in proprietary language PL/pgSQL or with common languages like Perl, Python, Tcl etc.
Triggersnoyes
Partitioning methods infoMethods for storing different data on different nodeshorizontal partitioning (by key range) infoall tables are translated to an ordered KV store and then broken down into 64MB ranges, which are then used as replicas in RAFTpartitioning by range, list and (since PostgreSQL 11) by hash
Replication methods infoMethods for redundantly storing data on multiple nodesMulti-source replication using RAFTSource-replica replication infoother methods possible by using 3rd party extensions
MapReduce infoOffers an API for user-defined Map/Reduce methodsnono
Consistency concepts infoMethods to ensure consistency in a distributed systemImmediate ConsistencyImmediate Consistency
Foreign keys infoReferential integrityyesyes
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACIDACID
Concurrency infoSupport for concurrent manipulation of datayesyes
Durability infoSupport for making data persistentyesyes
In-memory capabilities infoIs there an option to define some or all structures to be held in-memory only.nono
User concepts infoAccess controlRole-based access controlfine grained access rights according to SQL-standard
More information provided by the system vendor
CockroachDBPostgreSQL
Specific characteristicsCockroachDB is a cloud-native, distributed SQL database architected for modern applications....
» more
Competitive advantages- EFFORTLESS SCALE: Scale your applications, not operational complexity. CockroachDB...
» more
Typical application scenariosSystem of record (financial ledger, inventory management, transaction record), identity...
» more
Key customersComcast, DoorDash, Mythical Games, Norfolk Southern, LUSH, Bose, Shipt, Bitski, Five9,...
» more
Market metrics10K+ long-running clusters 25K+ CockroachDB self-hosted clusters 75K+ CockroachDB...
» more
Licensing and pricing models- Apache 2.0 for core features released up to and including the 19.1 release - Time-limited...
» more

We invite representatives of system vendors to contact us for updating and extending the system information,
and for displaying vendor-provided information such as key customers, competitive advantages and market metrics.

Related products and services
3rd partiesDatasentinel: Platform for Monitoring and Analyzing the performance problems of your PostgreSQL Clusters
» more

Navicat for PostgreSQL is an easy-to-use graphical tool for PostgreSQL database development.
» more

pgDash: In-Depth PostgreSQL Monitoring.
» more

Navicat Monitor is a safe, simple and agentless remote server monitoring tool for PostgreSQL and many other database management systems.
» more

Redgate webinars: A series of key topics for new PostgreSQL users.
» more

Instaclustr: Fully Hosted & Managed PostgreSQL
» more

Fujitsu Enterprise Postgres: An Enterprise Grade PostgreSQL with the flexibility of a hybrid cloud solution combined with industry leading security, availability and performance.
» more

Timescale: Calling all PostgreSQL users – the 2023 State of PostgreSQL survey is now open! Share your favorite extensions, preferred frameworks, community experiences, and more. Take the survey today!
» more

Aiven for PostgreSQL: Fully managed PostgreSQL for developers with 70+ extensions and flexible orchestration tools.
» more

We invite representatives of vendors of related products to contact us for presenting information about their offerings here.

More resources
CockroachDBPostgreSQL
DB-Engines blog posts

Snowflake is the DBMS of the Year 2022, defending the title from last year
3 January 2023, Matthias Gelbmann, Paul Andlinger

Snowflake is the DBMS of the Year 2021
3 January 2022, Paul Andlinger, Matthias Gelbmann

Driving the Future of PostgreSQL Adoption
15 November 2021,  Umair Shahid, Percona (sponsor) 

show all

Conferences and events

PostgreSQL 101: An introduction to Multi-Version Concurrency Control and Vacuum
Webinar with Q&A, 11am CT / 5pm BST, 24 October 2023

Recent citations in the news

Cockroach Labs To Announce Updates To Cockroachdb Dedicated ...
3 October 2023, Datanami

Santander, Booking.com, and DoorDash Join Cockroach Labs ...
12 September 2023, PR Newswire

There are lots of ways to put a database in the cloud – here's what to consider
15 September 2023, The Register

CockroachDB now supports Microsoft Azure, multiregion deployments
16 May 2023, InfoWorld

Distributed PostgreSQL Benchmarks: Azure Cosmos DB ...
8 July 2023, InfoQ.com

provided by Google News

High Performance Functions in Rust on RDS PostgreSQL
25 September 2023, InfoQ.com

4 key new features in PostgreSQL 16
14 September 2023, InfoWorld

Understanding the Fundamentals of PostgreSQL® Architecture
25 September 2023, Datanami

PostgreSQL 16 Expands Analytics Capabilities
22 September 2023, The New Stack

Timescale Strengthens and Accelerates AI Development with ...
29 September 2023, Database Trends and Applications

provided by Google News

Job opportunities

Software Engineer L4/L5 - Content Middleware Infrastructure (MWI)
Netflix, Remote

Software Engineer, Data Pipelines
Magical Tome, San Francisco, CA

Application Software Engineer, Data
SpaceX, Hawthorne, CA

Senior Platform Engineer
Mux, Remote

Senior Database Administrator
Fidelity Investments, Durham, NC

PostgreSQL DBA
i2vision, Remote

PostgreSQL Database Administrator
proit-inc, Remote

Senior Backend Engineer
Aescape, Inc., New York, NY

PostgreSQL Database Engineer
Alltech International, Remote

SQL Developer
ASRC Federal Holding Company, Moorestown, NJ

jobs by Indeed



Share this page

Featured Products

Redis logo

The world’s most loved real‑time data platform.
Try free

Datastax Astra logo

Bring all your data to Generative AI applications with vector search enabled by the most scalable
vector database available.
Try for Free

Neo4j logo

See for yourself how a graph database can make your life easier.
Use Neo4j online for free.

AllegroGraph logo

Graph Database Leader for AI Knowledge Graph Applications - The Most Secure Graph Database Available.
Free Download

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

Present your product here