DBMS > Google Cloud Spanner vs. PostgreSQL vs. Vitess
System Properties Comparison Google Cloud Spanner vs. PostgreSQL vs. Vitess
Please select another system to include it in the comparison.
|Editorial information provided by DB-Engines
|Google Cloud Spanner Xexclude from comparison
|PostgreSQL Xexclude from comparison
|Vitess Xexclude from comparison
|A 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 RDBMS Developed as objectoriented DBMS (Postgres), gradually enhanced with 'standards' like SQL
|Scalable, distributed, cloud-native DBMS, extending MySQL
|Primary database model
|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
Graph DBMS with Apache Age
Vector DBMS with pgvector extension
|PostgreSQL Global Development Group www.postgresql.org/developer
|The Linux Foundation, PlanetScale
|1989 1989: Postgres, 1996: PostgreSQL
|16.2, February 2024
|15.0.2, December 2022
|License Commercial or Open Source
|Open Source BSD
|Open Source Apache Version 2.0, commercial licenses available
|Cloud-based only Only available as a cloud service
|DBaaS offerings (sponsored links) Database as a Service
Providers of DBaaS offerings, please contact us to be listed.
|Aiven for PostgreSQL: Fully managed PostgreSQL for developers with 70+ extensions and flexible orchestration tools.
|PlanetScale: The easiest way to deploy Vitess in the cloud. Get the scalability of Vitess without all the work. Start your fully managed database with PlanetScale today.
|Server operating systems
|Typing predefined data types such as float or date
|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.
|yes specific XML-type available, but no XML query functionality.
|SQL Support of SQL
|yes Query statements complying to ANSI 2011
|yes standard with numerous extensions
|yes with proprietary extensions
|APIs and other access methods
|gRPC (using protocol buffers) API
JDBC At present, JDBC supports read-only queries. No support for DDL or DML statements.
RESTful HTTP API
native C library
streaming API for large objects
|Supported programming languages
|Server-side scripts Stored procedures
|user defined functions realized in proprietary language PL/pgSQL or with common languages like Perl, Python, Tcl etc.
|yes proprietary syntax
|Partitioning methods Methods for storing different data on different nodes
|partitioning by range, list and (since PostgreSQL 11) by hash
|Replication methods Methods for redundantly storing data on multiple nodes
|Multi-source replication with 3 replicas for regional instances.
|Source-replica replication other methods possible by using 3rd party extensions
|MapReduce Offers an API for user-defined Map/Reduce methods
|yes using Google Cloud Dataflow
|Consistency concepts Methods to ensure consistency in a distributed system
|Eventual Consistency across shards
Immediate Consistency within a shard
|Foreign keys Referential integrity
|yes by using interleaved tables, this features focuses more on performance improvements than on referential integrity
|yes not for MyISAM storage engine
|Transaction concepts Support to ensure data integrity after non-atomic manipulations of data
|ACID Strict serializable isolation
|ACID at shard level
|Concurrency Support for concurrent manipulation of data
|yes table locks or row locks depending on storage engine
|Durability Support for making data persistent
|In-memory capabilities Is there an option to define some or all structures to be held in-memory only.
|User concepts Access control
|Access rights for users, groups and roles based on Google Cloud Identity and Access Management (IAM)
|fine grained access rights according to SQL-standard
|Users with fine-grained authorization concept no user groups or roles
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
|pgDash: In-Depth PostgreSQL Monitoring.
Navicat for PostgreSQL is an easy-to-use graphical tool for PostgreSQL database development.
Redgate webinars: A series of key topics for new PostgreSQL users.
Aiven for PostgreSQL: Fully managed PostgreSQL for developers with 70+ extensions and flexible orchestration tools.
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!
Fujitsu Enterprise Postgres: An Enterprise Grade PostgreSQL with the flexibility of a hybrid cloud solution combined with industry leading security, availability and performance.
Datasentinel: Platform for Monitoring and Analyzing the performance problems of your PostgreSQL Clusters
SharePlex is the reliable and affordable data replication solution for PostgreSQL migrations, high availability and more.
Navicat Monitor is a safe, simple and agentless remote server monitoring tool for PostgreSQL and many other database management systems.
Instaclustr: Fully Hosted & Managed PostgreSQL
We invite representatives of vendors of related products to contact us for presenting information about their offerings here.
|Google Cloud Spanner
|DB-Engines blog posts
PostgreSQL is the DBMS of the Year 2023 Snowflake is the DBMS of the Year 2022, defending the title from last year
Snowflake is the DBMS of the Year 2022, defending the title from last year
|Recent citations in the news
Google Improves Cloud Spanner: More Compute and Storage without Price Increase
Google makes its Cloud Spanner database service faster and more cost-efficient
Google turns up the heat on AWS, claims Cloud Spanner is half the cost of DynamoDB
Google Cloud Spanner Is Now Half the Cost of Amazon DynamoDB
Building Uber's Fulfillment Platform for Planet-Scale using Google Cloud Spanner
provided by Google News
Universal API Access from Postgres and SQLite
Knowledge Bases for Amazon Bedrock now supports Amazon Aurora PostgreSQL and Cohere embedding models ...
Blog Theme - Details
Oracle Introduces PostgreSQL Running Native on OCI
OCI Database: Oracle Embraces PostgreSQL
provided by Google News
Vitess, the database clustering system powering YouTube, graduates CNCF incubation
PlanetScale Unveils Distributed MySQL Database Service Based on Vitess
Massively Scaling MySQL Using Vitess
They scaled YouTube — now they’ll shard everyone with PlanetScale
provided by Google News
Share this page