DBMS > H2 vs. IBM Db2 vs. PostgreSQL
System Properties Comparison H2 vs. IBM Db2 vs. PostgreSQL
Please select another system to include it in the comparison.
|Editorial information provided by DB-Engines|
|Name||H2 Xexclude from comparison||IBM Db2 formerly named DB2 or IBM Database 2 Xexclude from comparison||PostgreSQL Xexclude from comparison|
|Description||Full-featured RDBMS with a small footprint, either embedded into a Java application or used as a database server.||Common in IBM host environments, 2 different versions for host and Windows/Linux||Widely used open source RDBMS Developed as objectoriented DBMS (Postgres), gradually enhanced with 'standards' like SQL|
|Primary database model||Relational DBMS||Relational DBMS Since Version 10.5 support for JSON/BSON documents compatible with MongoDB||Relational DBMS with object oriented extensions, e.g.: user defined types/functions and inheritance. Handling of key/value pairs with hstore module.|
|Secondary database models||Spatial DBMS||Document store|
RDF store in Db2 LUW (Linux, Unix, Windows)
Spatial DBMS with Db2 Spatial Extender
|Developer||Thomas Mueller||IBM||PostgreSQL Global Development Group www.postgresql.org/developer|
|Initial release||2005||1983 host version||1989 1989: Postgres, 1996: PostgreSQL|
|Current release||2.1.210, January 2022||12.1, October 2016||14.3, May 2022|
|License Commercial or Open Source||Open Source dual-licence (Mozilla public license, Eclipse public license)||commercial free version is available||Open Source BSD|
|Cloud-based only Only available as a cloud service||no||no||no|
|DBaaS offerings (sponsored links) Database as a Service|
Providers of DBaaS offerings, please contact us to be listed.
|Implementation language||Java||C and C++||C|
|Server operating systems||All OS with a Java VM||AIX|
|Typing predefined data types such as float or date||yes||yes||yes|
|XML support Some form of processing data in XML format, e.g. support for XML data structures, and/or support for XPath, XQuery or XSLT.||no||yes specific XML-type available, but no XML query functionality.|
|SQL Support of SQL||yes||yes||yes standard with numerous extensions|
|APIs and other access methods||JDBC|
JSON style queries MongoDB compatible
native C library
streaming API for large objects
|Supported programming languages||Java||C|
|Server-side scripts Stored procedures||Java Stored Procedures and User-Defined Functions||yes||user defined functions realized in proprietary language PL/pgSQL or with common languages like Perl, Python, Tcl etc.|
|Partitioning methods Methods for storing different data on different nodes||none||Sharding only with Windows/Unix/Linux Version||partitioning by range, list and (since PostgreSQL 11) by hash|
|Replication methods Methods for redundantly storing data on multiple nodes||With clustering: 2 database servers on different computers operate on identical copies of a database||yes with separate tools (MQ, InfoSphere)||Source-replica replication other methods possible by using 3rd party extensions|
|MapReduce Offers an API for user-defined Map/Reduce methods||no||no||no|
|Consistency concepts Methods to ensure consistency in a distributed system||Immediate Consistency||Immediate Consistency|
|Foreign keys Referential integrity||yes||yes||yes|
|Transaction concepts Support to ensure data integrity after non-atomic manipulations of data||ACID||ACID||ACID|
|Concurrency Support for concurrent manipulation of data||yes, multi-version concurrency control (MVCC)||yes||yes|
|Durability Support for making data persistent||yes||yes||yes|
|In-memory capabilities Is there an option to define some or all structures to be held in-memory only.||yes||no|
|User concepts Access control||fine grained access rights according to SQL-standard||fine grained access rights according to SQL-standard||fine grained access rights according to SQL-standard|
More information provided by the system vendor
We invite representatives of system vendors to contact us for updating and extending the system information,
|Related products and services|
|3rd parties||Aiven for PostgreSQL: The familiar open source PostgreSQL® that you know and love, with no proprietary features or add-ons that will lock you in.
Fujitsu Enterprise Postgres: An Enterprise Grade PostgreSQL with the flexibility of a hybrid cloud solution combined with industry leading security, availability and performance.
The State of PostgreSQL 2022 survey is now open!
Instaclustr: Fully Hosted & Managed PostgreSQL
DbVisualizer is equipping database professionals with the tools they need to build, manage and maintain state-of-the-art database technologies. It has sky-high user satisfaction and is the preferred tool for database professionals around the world. Customers include Tesla, Apple, Facebook, Deutsche Bank, NASA, and 25,000 others in 145 countries.
pgDash: In-Depth PostgreSQL Monitoring.
EDB: BigAnimal is fully-managed PostgreSQL in the cloud from the database fanatics at EDB.
Percona: Database problems? Not on your watch.
Databases run better with Percona.
Datasentinel: Platform for Monitoring and Analyzing the performance problems of your PostgreSQL Clusters
Navicat for PostgreSQL is an easy-to-use graphical tool for PostgreSQL database development.
SQLFlow: Provides a visual representation of the overall flow of data. Automated SQL data lineage analysis across Databases, ETL, Business Intelligence, Cloud and Hadoop environments by parsing SQL Script and stored procedure.
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!
We invite representatives of vendors of related products to contact us for presenting information about their offerings here.
|H2||IBM Db2 formerly named DB2 or IBM Database 2||PostgreSQL|
|DB-Engines blog posts|