DB-EnginesExtremeDB: the first and only COTS deterministic embedded database management system for mission- and safety-critical hard real-time applicationsEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > Google Cloud Spanner vs. MySQL vs. PostgreSQL

System Properties Comparison Google Cloud Spanner vs. MySQL vs. PostgreSQL

Please select another system to include it in the comparison.

Editorial information provided by DB-Engines
NameGoogle Cloud Spanner  Xexclude from comparisonMySQL  Xexclude from comparisonPostgreSQL  Xexclude from comparison
DescriptionA horizontally scalable, globally consistent, relational database service. It is the externalization of the core Google database that runs the biggest aspects of Google, like Ads and Google Play.Widely used open source RDBMSWidely used open source RDBMS infoDeveloped as objectoriented DBMS (Postgres), gradually enhanced with 'standards' like SQL
Primary database modelRelational DBMSRelational 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.
Secondary database modelsDocument store
Spatial DBMS
Document store
Spatial DBMS
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score3.41
Rank#93  Overall
#49  Relational DBMS
Score1206.04
Rank#2  Overall
#2  Relational DBMS
Score608.21
Rank#4  Overall
#4  Relational DBMS
Websitecloud.google.com/­spannerwww.mysql.comwww.postgresql.org
Technical documentationcloud.google.com/­spanner/­docsdev.mysql.com/­docwww.postgresql.org/­docs
DeveloperGoogleOracle infosince 2010, originally MySQL AB, then SunPostgreSQL Global Development Group infowww.postgresql.org/­developer
Initial release201719951989 info1989: Postgres, 1996: PostgreSQL
Current release8.0.27, October 202114.1, November 2021
License infoCommercial or Open SourcecommercialOpen Source infoGPL version 2. Commercial licenses with extended functionallity are availableOpen Source infoBSD
Cloud-based only infoOnly available as a cloud serviceyesnono
DBaaS offerings (sponsored links) infoDatabase as a Service

Providers of DBaaS offerings, please contact us to be listed.
ScaleGrid for MySQL: Fully managed MySQL hosting on AWS, Azure and DigitalOcean with high availability and SSH access on the #1 multi-cloud DBaaS.ScaleGrid for PostgreSQL: Fully managed PostgreSQL hosting on AWS, Azure and DigitalOcean with high availability and SSH access on the #1 multi-cloud DBaaS.
Implementation languageC and C++C
Server operating systemshostedFreeBSD
Linux
OS X
Solaris
Windows
FreeBSD
HP-UX
Linux
NetBSD
OpenBSD
OS X
Solaris
Unix
Windows
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.noyesyes infospecific XML-type available, but no XML query functionality.
Secondary indexesyesyesyes
SQL infoSupport of SQLyes infoQuery statements complying to ANSI 2011yes infowith proprietary extensionsyes infostandard with numerous extensions
APIs and other access methodsgRPC (using protocol buffers) API
JDBC infoAt present, JDBC supports read-only queries. No support for DDL or DML statements.
RESTful HTTP API
ADO.NET
JDBC
ODBC
Proprietary native API
ADO.NET
JDBC
native C library
ODBC
streaming API for large objects
Supported programming languagesGo
Java
JavaScript (Node.js)
Python
Ada
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
Server-side scripts infoStored proceduresnoyes infoproprietary syntaxuser defined functions inforealized in proprietary language PL/pgSQL or with common languages like Perl, Python, Tcl etc.
Triggersnoyesyes
Partitioning methods infoMethods for storing different data on different nodesShardinghorizontal 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 with 3 replicas for regional instances.Multi-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 methodsyes infousing Google Cloud Dataflownono
Consistency concepts infoMethods to ensure consistency in a distributed systemImmediate ConsistencyImmediate ConsistencyImmediate Consistency
Foreign keys infoReferential integrityyes infoby using interleaved tables, this features focuses more on performance improvements than on referential integrityyes infonot for MyISAM storage engineyes
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACID infoStrict serializable isolationACID infonot for MyISAM storage engineACID
Concurrency infoSupport for concurrent manipulation of datayesyes infotable locks or row locks depending on storage engineyes
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.noyesno
User concepts infoAccess controlAccess rights for users, groups and roles based on Google Cloud Identity and Access Management (IAM)Users with fine-grained authorization concept infono user groups or rolesfine 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,
and for displaying vendor-provided information such as key customers, competitive advantages and market metrics.

Related products and services
3rd partiesNavicat for MySQL is the ideal solution for MySQL/MariaDB administration and development.
» more

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

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

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.
» more
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.
» more

Navicat for PostgreSQL is an easy-to-use graphical tool for PostgreSQL database development.
» more

pgDash: In-Depth PostgreSQL Monitoring.
» 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

EDB: BigAnimal is fully-managed PostgreSQL in the cloud from the database fanatics at EDB.
» more

Instaclustr: Fully Hosted & Managed PostgreSQL
» more

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

More resources
Google Cloud SpannerMySQLPostgreSQL
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

Driving the Future of PostgreSQL Adoption
15 November 2021,  Umair Shahid, Percona (sponsor) 

The Inexorable Rise of PostgreSQL
24 September 2021,  Matt Yonkovit, Percona (sponsor) 

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

show all

Recent citations in the news

11 Tools You Should Use as a Google Cloud Expert
1 December 2021, MakeUseOf

Google Cloud launches second Bare Metal Solution zone in Sydney
19 November 2021, CRN Australia

Google Cloud Gives Spanner a PostgreSQL Interface
12 October 2021, Datanami

AWS Working to Scale Aurora DB Writes Globally, Like Spanner
3 December 2021, Datanami

Google Cloud Spanner Adds PostgreSQL Interface: Is PostgreSQL Now Standard for Cloud Databases?
29 October 2021, InfoQ.com

provided by Google News

Amazon Aurora Supports MySQL 8.0
29 November 2021, InfoQ.com

PlanetScale Introduces Managed Cloud to Scale MySQL Databases
11 November 2021, InfoQ.com

How to install MySQL 8.0 Server on Debian 11 Bullseye
26 November 2021, Linux Shout

MySQL Database Compare Tools Overview: ApexSQL Data Diff vs dbForge Data Compare
8 November 2021, JAXenter

All your database are belong to us: AWS wants every data silo on its platform
2 December 2021, The Register

provided by Google News

How to Build Your Backend with Hasura and PostgreSQL
30 November 2021, SitePoint

Postgres Build 2021 Conference to Feature Leading PostgreSQL Experts
18 November 2021, Business Wire

Yugabyte Meets Developer Demand for Comprehensive PostgreSQL Compatibility with YugabyteDB 2.11
23 November 2021, The Bakersfield Californian

Flexible Server for Azure Database for PostgreSQL Now Commercially Available
1 December 2021, Redmondmag.com

Move Over To PostgreSQL With Babelfish and MangoDB
16 November 2021, iProgrammer

provided by Google News

Job opportunities

Staff Software Engineer, Spanner, Google Cloud
Google, New York, NY

Google Cloud Platform Data Engineer and Subject Matter Expert
Booz Allen Hamilton, McLean, VA

Managing Director, Product Activation, Google Cloud
Google, New York, NY

Google Cloud Architect (Remote)/Google Cloud Engineer
CitiusTech, Remote

Software Engineer III, Google Play
Google, Atlanta, GA

PHP & MySQL & HTML/CSS & JS Developers
Retail Ecommerce Ventures, Remote

SQL Server\MySQL Integration Developer - Fully Remote
MarketTime, Remote

PHP & MySQL Software Developer
Jenesis Software Inc., Remote

48338
Zachary Piper Solutions LLC, Remote

LARAVEL DEVELOPER
Coalition Technologies, Culver City, CA

Data Technician (Full- or Part-Time)
Thasos Group, New York, NY

PostgreSQL DBA
Tektree, United States

PostgreSQL Database Administrator
Clayton Homes, Greensboro, NC

Production Support Anaylst
Vision, Baltimore, MD

Entry Level Data Scientist
EXCELACOM INC, Greenwood Village, CO

jobs by Indeed



Share this page

Featured Products

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

AllegroGraph logo

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

Couchbase logo

The modern database for enterprise applications. Build fast. Scale Big. Save more.
Get started today.

Neo4j logo

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

Datastax Astra logo

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

Present your product here