DB-EnginesInfluxDB: Focus on building software with an easy-to-use serverless, scalable time series platformEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > MySQL vs. PostgreSQL vs. SurrealDB

System Properties Comparison MySQL vs. PostgreSQL vs. SurrealDB

Please select another system to include it in the comparison.

Editorial information provided by DB-Engines
NameMySQL  Xexclude from comparisonPostgreSQL  Xexclude from comparisonSurrealDB  Xexclude from comparison
DescriptionWidely used open source RDBMSWidely used open source RDBMS infoDeveloped as objectoriented DBMS (Postgres), gradually enhanced with 'standards' like SQLA fully ACID transactional, developer-friendly, multi-model DBMS
Primary database modelRelational DBMS infoKey/Value like access via memcached APIRelational DBMS infowith object oriented extensions, e.g.: user defined types/functions and inheritance. Handling of key/value pairs with hstore module.Document store
Graph DBMS
Secondary database modelsDocument store
Spatial DBMS
Document 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
Score1133.32
Rank#2  Overall
#2  Relational DBMS
Score638.82
Rank#4  Overall
#4  Relational DBMS
Score1.05
Rank#215  Overall
#35  Document stores
#18  Graph DBMS
Websitewww.mysql.comwww.postgresql.orgsurrealdb.com
Technical documentationdev.mysql.com/­docwww.postgresql.org/­docssurrealdb.com/­docs
DeveloperOracle infosince 2010, originally MySQL AB, then SunPostgreSQL Global Development Group infowww.postgresql.org/­developerSurrealDB Ltd
Initial release19951989 info1989: Postgres, 1996: PostgreSQL2022
Current release8.1.0, July 202316.0, September 2023
License infoCommercial or Open SourceOpen Source infoGPL version 2. Commercial licenses with extended functionallity are availableOpen Source infoBSDOpen Source
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.
  • PlanetScale: Deploy a fully managed database with the reliability of MySQL and the scale of open source Vitess with PlanetScale today. Predictably scale, increase workflow velocity, and deploy features with zero downtime.
  • Aiven for MySQL: Fully managed MySQL, deployable in the cloud of your choice, with seamless integrations and lightning-fast setup.
Aiven for PostgreSQL: Fully managed PostgreSQL for developers with 70+ extensions and flexible orchestration tools.
Implementation languageC and C++CRust
Server operating systemsFreeBSD
Linux
OS X
Solaris
Windows
FreeBSD
HP-UX
Linux
NetBSD
OpenBSD
OS X
Solaris
Unix
Windows
Linux
macOS
Windows
Data schemeyesyesschema-free
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.yesyes infospecific XML-type available, but no XML query functionality.
Secondary indexesyesyes
SQL infoSupport of SQLyes infowith proprietary extensionsyes infostandard with numerous extensionsSQL-like query language
APIs and other access methodsADO.NET
JDBC
ODBC
Proprietary native API
ADO.NET
JDBC
native C library
ODBC
streaming API for large objects
GraphQL
RESTful HTTP API
WebSocket
Supported programming languagesAda
C
C#
C++
D
Delphi
Eiffel
Erlang
Haskell
Java
JavaScript (Node.js)
Objective-C
OCaml
Perl
PHP
Python
Ruby
Scheme
Tcl
.Net
C
C++
Delphi
Java infoJDBC
JavaScript (Node.js)
Perl
PHP
Python
Tcl
Deno
Go
JavaScript (Node.js)
Rust
Server-side scripts infoStored proceduresyes infoproprietary syntaxuser defined functions inforealized in proprietary language PL/pgSQL or with common languages like Perl, Python, Tcl etc.
Triggersyesyes
Partitioning methods infoMethods for storing different data on different nodeshorizontal partitioning, sharding with MySQL Cluster or MySQL Fabricpartitioning by range, list and (since PostgreSQL 11) by hash
Replication methods infoMethods for redundantly storing data on multiple nodesMulti-source replication
Source-replica replication
Source-replica replication infoother methods possible by using 3rd party extensions
MapReduce infoOffers an API for user-defined Map/Reduce methodsnonono
Consistency concepts infoMethods to ensure consistency in a distributed systemImmediate ConsistencyImmediate Consistency
Foreign keys infoReferential integrityyes infonot for MyISAM storage engineyes
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACID infonot for MyISAM storage engineACIDACID
Concurrency infoSupport for concurrent manipulation of datayes infotable locks or row locks depending on storage engineyesyes
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.yesno
User concepts infoAccess controlUsers with fine-grained authorization concept infono user groups or rolesfine grained access rights according to SQL-standardyes, based on authentication and database rules

More information provided by the system vendor

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 partiesPlanetScale: Deploy a fully managed serverless database with the reliability of MySQL and the tested scalability of Vitess. Predictably scale, increase workflow velocity, and deploy features with zero downtime.
Get started with a PlanetScale database today for free.
» more

Aiven for MySQL: Fully managed MySQL, deployable in the cloud of your choice, with seamless integrations and lightning-fast setup.
» more

CData: Connect to Big Data & NoSQL through standard Drivers.
» more

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

Navicat for MySQL is the ideal solution for MySQL/MariaDB administration and development.
» more
Datasentinel: 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

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

pgDash: In-Depth PostgreSQL Monitoring.
» more

Instaclustr: Fully Hosted & Managed PostgreSQL
» more

Redgate webinars: A series of key topics for new PostgreSQL users.
» 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

Navicat Monitor is a safe, simple and agentless remote server monitoring tool for PostgreSQL and many other database management systems.
» 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
MySQLPostgreSQLSurrealDB
DB-Engines blog posts

MySQL is the DBMS of the Year 2019
3 January 2020, Matthias Gelbmann, Paul Andlinger

MariaDB strengthens its position in the open source RDBMS market
5 April 2018, Matthias Gelbmann

The struggle for the hegemony in Oracle's database empire
2 May 2017, Paul Andlinger

show all

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

PlanetScale forks MySQL to add vector support
3 October 2023, TechCrunch

PHP MySQL Create profile update form and show old data on it ...
30 September 2023, SitePoint

Oracle Continues MySQL HeatWave Innovation with Vector Store ...
20 September 2023, oracle.com

Using Git Hooks with MySQL
30 September 2023, hackernoon.com

Oracle’s MySQL HeatWave gets Vector Store, generative AI features
20 September 2023, InfoWorld

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

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

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

provided by Google News

Introducing SurrealDB: A Quantum Leap in Database Technology
11 September 2023, TechRound

Cloud, privacy and AI: Trends defining the future of data and ...
27 September 2023, Sifted

Rust and the OS, the Web, Database and Other Languages
21 November 2022, The New Stack

Daily Crunch: Salesforce CEO admits ‘we hired too many people’ as company lays off +7,000 employees
4 January 2023, TechCrunch

London's first Web3 Hub opens its doors
16 March 2023, Bdaily News

provided by Google News

Job opportunities

Jr. Business Analyst Training& Placement
Precision technology, Remote

Plan Operations Supervisor
SmithRx, Remote

Support Technician
AvantLink.com, Remote

Power BI Reporting Specialist
Acronym US, Remote

Data Analyst
Meritize, Remote

PostgreSQL Database Administrator
proit-inc, Remote

Database Administrator (part time Night shift/weekend)
Akima, Herndon, VA

PostgreSQL DBA
i2vision, Remote

PHP Developers
10Types, Wilmington, DE

Junior Backend Developer
Actum Lab, Austin, TX

jobs by Indeed



Share this page

Featured Products

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

Redis logo

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

Neo4j logo

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

SingleStore logo

Database for your real-time AI and Analytics Apps.
Try it today.

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

Present your product here