MariaDB VS PostgreSQL

Compare MariaDB vs PostgreSQL and see what are their differences.

MariaDB

MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry. (by MariaDB)

PostgreSQL

Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch (by postgres)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
MariaDB PostgreSQL
9 407
5,298 14,734
2.2% 3.8%
9.9 10.0
5 days ago 1 day ago
C++ C
GNU General Public License v3.0 only GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

MariaDB

Posts with mentions or reviews of MariaDB. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-29.
  • Ask HN: Postgres vs. MySQL in 2023?
    2 projects | news.ycombinator.com | 29 Sep 2023
    MariaDB [1] is a community developed fork of MySQL, so you can feel free to use that in place of MySQL.

    Another alternative would be Percona [2] which is a drop-in replacement for Oracle MySQL.

    About PostgreSQL I haven't had that much of personal experience with it, but for sure I plan to learn it, because it has been battle-tested for years with lots of well-known projects, such as Django framework, for instance.

    [1] https://github.com/MariaDB/server

    [2] https://github.com/percona/percona-server

  • What is technically happening in the server when you "prepare an SQL statement"? $mysqli->prepare($sql)
    1 project | /r/PHPhelp | 24 Apr 2023
  • mariadb-slow.log is 138GB
    1 project | /r/mariadb | 20 Feb 2023
    aka mariadb-dumpslow (aka mysqldumpslow) or pt-query-digest
  • MariaDB plunges nearly 40% in NYSE debut after SPAC merger
    2 projects | news.ycombinator.com | 20 Dec 2022
    My recollection is that it was created when Oracle took over MySQL in order to continue to have a community-driven GPLv2 "mysql compatible" server; I was expecting them to be more different than they are, but for comparison one is a "clean" GPLv2" and the other has more words and a link to oracle.com: https://github.com/mysql/mysql-server/blob/mysql-8.0.31/LICE... https://github.com/MariaDB/server/blob/mariadb-10.11.1/COPYI...
  • Building 10.5.18 from github
    2 projects | /r/mariadb | 27 Sep 2022
    git clone --recursive --depth 1 --branch 10.5 https://github.com/MariaDB/server.git cmake . # needs cmake3 make make install
  • MariaDB Minimal Installation
    3 projects | /r/mariadb | 14 Apr 2022
    RUN git clone \ --branch mariadb-10.5.15 \ --depth 1 \ --recurse-submodules \ https://github.com/mariadb/server.git \ ~/server
  • We built an open-source SQL DB for Intel SGX enclaves
    3 projects | /r/cybersecurity | 7 Aug 2021
    Hi everyone! Our team just released EdgelessDB, an open-source database built on MariaDB that runs completely inside Intel SGX enclaves. As storage engine, it uses RocksDB with a custom encryption engine. The engine uses AES-GCM and is optimized for RocksDB’s specific SST file layout and the enclave environment. It has some nice properties like global confidentiality and verifiability and it considers strong attackers like malicious admins or rootkits. It also delivers rather low overheads (<10% for the TPC-C benchmark on Azure). In short: all data is only ever decrypted inside the enclave. This is different from other databases, where data and corresponding keys are processed in the clear in memory. We believe this is useful because (1) it’s very secure and (2) it enables some interesting use cases, like secure data pooling between parties. If you’re interested in trying it out: here’s a quickstart guide. In essence, you can run the Docker image with a single command on any recent Intel Xeon with SGX. Code and more info can be found on GitHub. Would be great to get your feedback on this :-)
  • Migrating to MariaDB
    3 projects | /r/mid_as | 5 Jul 2021
    MariaDB has 268 contributors vs 83 contributors to MySQL *

PostgreSQL

Posts with mentions or reviews of PostgreSQL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-29.
  • Presentación del Operador LMS Moodle
    5 projects | dev.to | 29 Apr 2024
  • Introducing LMS Moodle Operator
    5 projects | dev.to | 29 Apr 2024
    The LMS Moodle Operator serves as a meta-operator, orchestrating the deployment and management of Moodle instances in Kubernetes. It handles the entire stack required to run Moodle, including components like Postgres, Keydb, NFS-Ganesha, and Moodle itself. Each of these components has its own Kubernetes Operator, ensuring seamless integration and management.
  • Integrate txtai with Postgres
    2 projects | dev.to | 25 Apr 2024
    Another key feature of txtai is being able to quickly move from prototyping to production. This article will demonstrate how txtai can integrate with Postgres, a powerful, production-ready and open source object-relational database system. After txtai persists content to Postgres, we'll show it can be directly queried with SQL from any Postgres client
  • Understanding SQL vs. NoSQL Databases: A Beginner's Guide
    5 projects | dev.to | 9 Apr 2024
    SQL (Structured Query Language) databases are relational databases. They organize data into tables with rows and columns, and they use SQL for querying and managing data. Examples include MySQL, PostgreSQL, and SQLite.
  • From zero to hero: using SQL databases in Node.js made easy
    3 projects | dev.to | 19 Mar 2024
    Node.js, MySQL and PostgreSQL servers installed on your machine
  • I Deployed My Own Cute Lil’ Private Internet (a.k.a. VPC)
    8 projects | dev.to | 18 Mar 2024
    Each app’s front end is built with Qwik and uses Tailwind for styling. The server-side is powered by Qwik City (Qwik’s official meta-framework) and runs on Node.js hosted on a shared Linode VPS. The apps also use PM2 for process management and Caddy as a reverse proxy and SSL provisioner. The data is stored in a PostgreSQL database that also runs on a shared Linode VPS. The apps interact with the database using Drizzle, an Object-Relational Mapper (ORM) for JavaScript. The entire infrastructure for both apps is managed with Terraform using the Terraform Linode provider, which was new to me, but made provisioning and destroying infrastructure really fast and easy (once I learned how it all worked).
  • How to dump and restore a Postgres DB with new table ownership
    2 projects | dev.to | 14 Mar 2024
    I've used MySQL for years. But recently, I found myself working PostgreSQL and simple things like dumping and restoring a database are different enough that I decided to document the process. It's straightforward enough once I knew how.
  • Test Driving a Rails API - Part One
    11 projects | dev.to | 11 Mar 2024
    A running Rails application needs a database to connect to. You may already have your database of choice installed, but if not, I recommend PostgreSQL, or Postgres for short. On a Mac, probably the easiest way to install it is with Posrgres.app. Another option, the one I prefer, is to use Homebrew. With Homebrew installed, this command will install PostgreSQL version 16 along with libpq:
  • Um júnior e um teste técnico: The battle.
    5 projects | dev.to | 3 Mar 2024
    PostgreSQL
  • How to choose the right type of database
    15 projects | dev.to | 28 Feb 2024
    PostgreSQL: Offers a robust feature set and strong compliance with SQL standards, making it suitable for a wide range of applications, from simple to complex, particularly where data integrity and extensibility are key.

What are some alternatives?

When comparing MariaDB and PostgreSQL you can also consider the following projects:

Firebird - FB/Java plugin for Firebird

psycopg2 - PostgreSQL database adapter for the Python programming language

phpMyAdmin - A web interface for MySQL and MariaDB

ClickHouse - ClickHouse® is a free analytics DBMS for big data

Percona Server - Percona Server

MySQL - MySQL Server, the world's most popular open source database, and MySQL Cluster, a real-time, open source transactional database.

Adminer - Database management in a single PHP file

SQLite - Unofficial git mirror of SQLite sources (see link for build instructions)

SQLAlchemy - The Database Toolkit for Python