#1
PostgreSQL is an object-relational database management system supporting SQL features such as transactions, foreign keys and triggers.
- GitHub stars
- 23k
- Last commit
- yesterday
- Self-hosted
- Yes
postgresql.org
PostgreSQL is a feature-rich object-relational database management system covering a large part of the SQL standard. Its feature set includes transactions, foreign keys, subqueries, triggers, and user-defined types and functions, and the distribution also contains C language bindings. This GitHub repository is only a mirror of the official git repository, written in C, and the metadata lists the license as Other.
The project does not use GitHub pull requests; contributors submit patches through the process described on the PostgreSQL wiki. Copyright and license terms are in the COPYRIGHT file, general documentation for each version is published on the project site, and build instructions explain how to compile the server from source. The latest releases of the software and related software are available from the PostgreSQL website. Many hosting providers offer managed PostgreSQL, but the project itself is software you install and operate.
Key features
- Object-relational database with SQL support
- Transactions and foreign keys
- Subqueries and triggers
- User-defined types and functions
- C language bindings
- Documentation for building from source
Pricing: Free and open source; the repository lists the license as Other, so see the COPYRIGHT file for terms.
#2
An open-source, MySQL-compatible distributed SQL database with horizontal scaling, ACID transactions, Raft-based high availability and support for analytics and vector search.
- GitHub stars
- 41k
- Last commit
- today
- Latest release
- v7.5.8
- Licence
- Apache-2.0
- Self-hosted
- Yes
- Hosted version
- Available
tidb.io
TiDB is a cloud-native, open-source distributed SQL database from PingCAP. The name's Ti stands for titanium, and it is built for high availability, strong consistency and the ability to scale out as data and traffic grow, while staying compatible with MySQL so existing applications and tools can connect with little change.
Distributed transactions use a two-phase commit protocol to keep ACID guarantees even across nodes, through network partitions or node failures. It scales horizontally by adding nodes or vertically by adding resources, without downtime, and its architecture separates compute from storage so each can be adjusted independently. Built-in Raft consensus keeps multiple replicas in sync and handles automated failover. Topics also mention HTAP workloads, analytics and native vector search.
TiDB is written in Go under the Apache-2.0 license. It can be deployed on your own infrastructure or consumed as a managed cloud service, and it suits teams that have outgrown a single MySQL server and want horizontal scale without sharding by hand.
Key features
- MySQL-compatible distributed SQL
- Distributed ACID transactions
- Horizontal and vertical scaling without downtime
- Separated compute and storage layers
- Raft-based replication and automated failover
- Analytics and vector search support
Pricing: TiDB Community is free and Cloud Starter has a monthly free quota. Cloud Premium starts from $1800 per month and Dedicated from $0.22 per hour; Self-Managed is priced on request.
#3
MariaDB Server is an open-source relational database that began as a fork of MySQL, with vector search, pluggable storage engines and Galera clustering.
- GitHub stars
- 8.6k
- Last commit
- today
- Latest release
- mariadb-13.0.2
- Licence
- GPL-2.0
- Self-hosted
- Yes
mariadb.org
MariaDB Server is an open-source relational database built by a global community with the MariaDB Foundation and MariaDB plc. It started out as a MySQL fork driven by the people who created MySQL, keeps a high degree of MySQL compatibility, and is described as a straightforward migration target for existing MySQL deployments.
Since then it has gained its own capabilities. A native VECTOR data type with approximate nearest-neighbour HNSW indexing has been available since version 11.8. Pluggable storage engines include InnoDB, Aria and MyRocks, plus ColumnStore (analytics), Spider (sharding) and S3 (archiving). Replication options include async, semi-sync and parallel modes using global transaction IDs, and Galera provides synchronous multi-primary clustering. On the SQL side it offers common table expressions, window functions, temporal tables with system versioning, sequences and a range of JSON functions.
It also offers an Oracle SQL mode with PL/SQL-style routines, GIS data types and full-text indexing, and security features such as role-based access control, pluggable authentication, data-at-rest encryption and TLS. MariaDB is written in C++ and licensed under GPL-2.0, and you run it on your own servers or in the cloud.
Key features
- Native vector search with HNSW indexing
- Pluggable storage engines including InnoDB
- Galera synchronous multi-primary clustering
- Temporal tables and window functions
- MySQL and Oracle compatibility modes
- Spatial and full-text indexing
- Role-based access and data-at-rest encryption
Pricing: Free and open source under the GPL-2.0 licence.
#4
A distributed relational database developed by Ant Group, MySQL-compatible and built on Paxos, supporting transactional, analytical and vector workloads.
- GitHub stars
- 10k
- Last commit
- yesterday
- Latest release
- v4.6.0_CE_BP1
- Licence
- Apache-2.0
- Self-hosted
- Yes
en.oceanbase.com
OceanBase is a distributed relational database developed by Ant Group. It runs on a cluster of commodity servers and uses the Paxos protocol and a distributed architecture to provide high availability and scalability, without depending on a specific hardware architecture.
It is compatible with MySQL, which eases migration from MySQL databases, and supports hybrid transactional and analytical processing, so one engine can serve both OLTP and OLAP workloads. The project now describes itself as a unified, multi-model database for the AI era, with topics that include vector search and full-text search. Cloud-native operation is supported through a Kubernetes operator.
You can try it by deploying a stand-alone instance with an all-in-one package on Linux, starting a Docker container from images on Docker Hub, quay.io or ghcr.io, or running it on Kubernetes with ob-operator. OceanBase is written in C++ and licensed under Apache-2.0, with a developer guide for compiling the observer yourself.
Key features
- Distributed architecture on Paxos
- Compatible with MySQL applications
- Hybrid transactional and analytical processing
- Vector and full-text search
- Docker and Kubernetes deployment
- All-in-one stand-alone installer
Pricing: Free and open source under the Apache-2.0 licence.
#5
A PostgreSQL-compatible, cloud-native distributed SQL database for transactional workloads that need scale, fault tolerance or multi-region deployment.
- GitHub stars
- 11k
- Last commit
- today
- Latest release
- v2026.1.3.0
- Self-hosted
- Yes
yugabyte.com
YugabyteDB is a distributed SQL database that is compatible with PostgreSQL. It combines the relational features of traditional databases with the scale-out design of NoSQL systems, and is intended for cloud-native OLTP applications that need correct data and at least one of scalability, tolerance to failures or global distribution.
Its SQL layer, YSQL, reuses the PostgreSQL query layer and so supports most PostgreSQL features, including data types, stored procedures, triggers and extensions. Its transaction model follows the design of Google Spanner, using Raft consensus for replication and hybrid logical clocks for distributed ACID transactions, with snapshot, serializable and read committed isolation. Reads are strongly consistent by default and can be tuned to read from followers and replicas.
The database can be configured to withstand failures at the level of a disk, rack, node, zone, region or whole cloud, recovering on its own, and the topics mention multi-region, multi-cloud and Kubernetes deployments. The project is written mainly in C and C++, the repository lists its license as Other, and documentation covers architecture, roadmap and how to build applications.
Key features
- PostgreSQL-compatible SQL layer
- Distributed ACID transactions
- Replication using Raft consensus
- Snapshot, serializable and read committed isolation
- Automatic failover and repair
- Multi-region and multi-cloud deployments
- Kubernetes deployment support
Pricing: The open-source database is free. The managed Aeon service starts at $125 (Standard) or $167 (Professional) per vCPU per month plus storage and transfer, with a free trial; Enterprise is quoted.
IBM Db2 alternatives: questions
- What is the best open-source alternative to IBM Db2?
- PostgreSQL is the top-ranked open-source alternative to IBM Db2 on Enlisted: PostgreSQL is an object-relational database management system supporting SQL features such as transactions, foreign keys and triggers. Other strong options are TiDB, MariaDB, OceanBase and YugabyteDB.
- What are the best commercial alternatives to IBM Db2?
- Amazon Aurora, Amazon RDS, Azure SQL Database, Microsoft SQL Server and Oracle Autonomous Database are among the hosted, closed-source alternatives to IBM Db2 listed on Enlisted, which lists 8 in total. Compare their pricing and features on each tool page.
- Are these IBM Db2 alternatives free?
- All 5 are open source, so the code is free to use under its licence, and all of them can be self-hosted on your own server or computer. 1 also offers a paid or managed cloud version if you'd rather not host it yourself.
- How is this list of IBM Db2 alternatives ranked?
- By a score built from GitHub stars, star growth over the last 30 days and how recently the code changed. 5 of these projects shipped code in the last 30 days. Data is refreshed daily, and nobody can pay to move up.