DB-EnginesExtremeDB: the embedded DBMS for embedded systemsEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > IBM Db2 vs. PostgreSQL vs. TiDB

System Properties Comparison IBM Db2 vs. PostgreSQL vs. TiDB

Please select another system to include it in the comparison.

Editorial information provided by DB-Engines
NameIBM Db2 infoformerly named DB2 or IBM Database 2  Xexclude from comparisonPostgreSQL  Xexclude from comparisonTiDB  Xexclude from comparison
DescriptionCommon in IBM host environments, 2 different versions for host and Windows/LinuxWidely used open source RDBMS infoDeveloped as objectoriented DBMS (Postgres), gradually enhanced with 'standards' like SQLTiDB is an open source distributed Hybrid Transactional/Analytical Processing (HTAP) database that supports MySQL and Spark SQL syntaxes.
Primary database modelRelational DBMS infoSince Version 10.5 support for JSON/BSON documents compatible with MongoDBRelational DBMS infowith object oriented extensions, e.g.: user defined types/functions and inheritance. Handling of key/value pairs with hstore module.Relational DBMS
Secondary database modelsDocument store
RDF store infoin Db2 LUW (Linux, Unix, Windows)
Spatial DBMS infowith Db2 Spatial Extender
Document store
Spatial DBMS
Document store
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score166.66
Rank#6  Overall
#5  Relational DBMS
Score559.25
Rank#4  Overall
#4  Relational DBMS
Score1.94
Rank#117  Overall
#57  Relational DBMS
Websitewww.ibm.com/­analytics/­db2www.postgresql.orgpingcap.com
Technical documentationwww.ibm.com/­support/­knowledgecenter/­SSEPGGwww.postgresql.org/­docsdocs.pingcap.com/­tidb/­stable
DeveloperIBMPostgreSQL Global Development Group infowww.postgresql.org/­developerPingCAP, Inc.
Initial release1983 infohost version1989 info1989: Postgres, 1996: PostgreSQL2016
Current release12.1, October 201613.2 , February 20215.0.0, April 2021
License infoCommercial or Open Sourcecommercial infofree version is availableOpen Source infoBSDOpen Source infoApache 2.0
Cloud-based only infoOnly available as a cloud servicenonono
DBaaS offerings (sponsored links) infoDatabase as a Service

Providers of DBaaS offerings, please contact us to be listed.
ScaleGrid for PostgreSQL: Fully managed PostgreSQL hosting on AWS, Azure and DigitalOcean with high availability and SSH access on the #1 multi-cloud DBaaS.TiDB Cloud: Fully-managed TiDB Service. Bring everything great about TiDB to the cloud.
Implementation languageC and C++CGo, Rust
Server operating systemsAIX
HP-UX
Linux
Solaris
Windows
z/OS
FreeBSD
HP-UX
Linux
NetBSD
OpenBSD
OS X
Solaris
Unix
Windows
Linux
Data schemeyesyesyes
Typing infopredefined data types such as float or dateyesyesyes
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.yes infospecific XML-type available, but no XML query functionality.no
Secondary indexesyesyesyes
SQL infoSupport of SQLyesyes infostandard with numerous extensionsyes
APIs and other access methodsADO.NET
JDBC
JSON style queries infoMongoDB compatible
ODBC
XQuery
ADO.NET
JDBC
native C library
ODBC
streaming API for large objects
JDBC
ODBC
Proprietary protocol
Supported programming languagesC
C#
C++
Cobol
Delphi
Fortran
Java
Perl
PHP
Python
Ruby
Visual Basic
.Net
C
C++
Delphi
Java infoJDBC
JavaScript (Node.js)
Perl
PHP
Python
Tcl
Ada
C
C#
C++
D
Delphi
Eiffel
Erlang
Haskell
Java
JavaScript (Node.js)
Objective-C
OCaml
Perl
PHP
Python
Ruby
Scheme
Tcl
Server-side scripts infoStored proceduresyesuser defined functions inforealized in proprietary language PL/pgSQL or with common languages like Perl, Python, Tcl etc.no
Triggersyesyesno
Partitioning methods infoMethods for storing different data on different nodesSharding infoonly with Windows/Unix/Linux Versionpartitioning by range, list and (since PostgreSQL 11) by hashhorizontal partitioning (by key range)
Replication methods infoMethods for redundantly storing data on multiple nodesyes infowith separate tools (MQ, InfoSphere)Source-replica replication infoother methods possible by using 3rd party extensionsUsing Raft consensus algorithm to ensure data replication with strong consistency among multiple replicas.
MapReduce infoOffers an API for user-defined Map/Reduce methodsnonoyes infowith TiSpark Connector
Consistency concepts infoMethods to ensure consistency in a distributed systemImmediate ConsistencyImmediate Consistency
Foreign keys infoReferential integrityyesyesno infocurrently only supported in syntax
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACIDACIDACID
Concurrency infoSupport for concurrent manipulation of datayesyesyes
Durability infoSupport for making data persistentyesyesyes
In-memory capabilities infoIs there an option to define some or all structures to be held in-memory only.nono
User concepts infoAccess controlfine grained access rights according to SQL-standardfine grained access rights according to SQL-standardUsers with fine-grained authorization concept. No user groups or roles.
More information provided by the system vendor
IBM Db2 infoformerly named DB2 or IBM Database 2PostgreSQLTiDB
Specific characteristicsTiDB is an open-source NewSQL database built by PingCAP. TiDB supports Hybrid Transactional...
» more
Competitive advantagesIn the current database landscape, infrastructure engineers often have to use one...
» more
Typical application scenariosTiDB is designed to support both OLTP and OLAP scenarios. You can use TiDB , the...
» more
Key customersShopee (E-commerce) BookMyShow.com (E-commerce) Yiguo.com (E-commerce) JD Cloud &...
» more
Market metrics25K+ GitHub Stars for TiDB, and 8K+ GitHub Stars for TiKV 1.6K+ members in TiDB Community...
» more
Licensing and pricing modelsOpen Source Apache 2.0 with either commercial licensing or fully-hosted DB-as-a-service...
» more
News

PingCAP Successfully Completes SOC 2 Type2 Examination for TiDB Cloud
10 May 2021

TiDB Cloud Now in Public Preview
10 May 2021

Linux Kernel vs. Memory Fragmentation (Part II)
3 May 2021

Getting Started with Rails & TiDB
28 April 2021

TiKV + SPDK: Pushing the Limits of Storage Performance
26 April 2021

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 partiesGeneral SQL Parser: Instantly adding parsing, decoding, analysis and rewrite SQL processing capability to your products.
» more
Navicat for PostgreSQL is an easy-to-use graphical tool for PostgreSQL database development.
» more

ClusterControl: the only management system you’ll ever need to take control of your open source database infrastructure.
» more

EDB: Helping organizations get the most from PostgreSQL, Oracle Migration, High Availability, Security
» more

pgDash: In-Depth PostgreSQL Monitoring.
» more

General SQL Parser: Instantly adding parsing, decoding, analysis and rewrite SQL processing capability to your products.
» more

CYBERTEC is your professional partner for PostgreSQL services and Data Science since 2000. With offices in Austria, Uruguay, Estonia, Poland, South Africa and Switzerland, CYBERTEC operates worldwide and is here for you 24/7!
» more

Fivetran: Quickly and easily centralize your on-premise and cloud databases.
» more

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

More resources
IBM Db2 infoformerly named DB2 or IBM Database 2PostgreSQLTiDB
DB-Engines blog posts

PostgreSQL is the DBMS of the Year 2020
4 January 2021, Paul Andlinger, Matthias Gelbmann

PostgreSQL is the DBMS of the Year 2018
2 January 2019, Paul Andlinger, Matthias Gelbmann

PostgreSQL is the DBMS of the Year 2017
2 January 2018, Paul Andlinger, Matthias Gelbmann

show all

Recent citations in the news

Query Supervisor Gives Database Engineers New Power
14 April 2021, IT Jungle

What's New With BRMS, PowerHA, And Db2 Mirror
28 April 2021, IT Jungle

Big Blue Unveils Spring 2021 IBM i Technology Refreshes
12 April 2021, IT Jungle

In Search of Multi-Modal Data Integration
5 May 2021, IT Jungle

Red Hat Extends OpenShift Operator to Integration Platform
26 April 2021, Container Journal

provided by Google News

Five tips for a smooth migration to PostgreSQL
7 May 2021, Information Age

Guest View: OLAP + OLTP = ...PostgreSQL?
12 April 2021, SDTimes.com

Rockset Enables Real-Time Analytics for MySQL and PostgreSQL
17 April 2021, DevPro Journal

Jan Wieck, Former Postgres Core Team Member, Joins Crunchy Data - PRNewswire
26 April 2021, PRNewswire

Rockset takes a deeper dive into enterprise data pool
15 April 2021, ZDNet

provided by Google News

PingCAP announces Public Preview of TiDB Cloud USA - English USA - English
10 May 2021, PRNewswire

PingCAP, the open-source developer behind TiDB, closes $270 million Series D
17 November 2020, TechCrunch

PingCAP Announces TiDB Cloud, Bringing Fully-Managed TiDB Service to AWS and GCP
23 June 2020, PRNewswire

PingCAP launches TiDB Cloud, a fully-managed database as a service offering
25 June 2020, Help Net Security

PingCAP raises $270M to develop core technologies and advance global expansion of its offerings
18 November 2020, Help Net Security

provided by Google News

Job opportunities

Principal Database Administrator - DB2
Fidelity Investments, Durham, NC

Entry Level to Senior Level Database Administrators
Agiletal, Herndon, VA

DB2 Database Administrator
Fidelity Investments, Westlake, TX

DB2 Database Administrator
ASRC Federal Holding Company, Annapolis, MD

Database Administrator
Honda R&D Americas, Inc., Greensboro, NC

Data Migration Specialist, Veterans Affairs
Peraton, Herndon, VA

Software Developer - Fulltime
Cerebrum Software Solutions, Ashburn, VA

Yellowbrick/PostgreSQL Database Administrator
Highmark Health, Harrisburg, PA

ETL Developer
CACI, Ashburn, VA

Jr. Python Developer
NITR, Herndon, VA

Head of FP&A
PingCAP, San Mateo, CA

Recruiter
PingCAP, San Mateo, CA

Director of Marketing, North American
PingCAP, San Mateo, CA

Principal Product Marketing Manager
PingCAP, San Mateo, CA

Head of Tax
PingCAP, San Mateo, CA

jobs by Indeed




Share this page

Featured Products

Datastax Astra logo

Build cloud-native apps fast with Astra, the open-source, multi-cloud stack for
modern data apps.
Get started with 5 GB free..

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

Couchbase logo

SQL + JSON + NoSQL.
Power, flexibility & scale.
All open source.
Get started now.

AllegroGraph logo

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

Neo4j logo

Get your free copy of the new O'Reilly book Graph Algorithms with 20+ examples for
machine learning, graph analytics and more.

Present your product here