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 > Google Cloud Spanner vs. H2 vs. PostgreSQL

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

Please select another system to include it in the comparison.

Editorial information provided by DB-Engines
NameGoogle Cloud Spanner  Xexclude from comparisonH2  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.Full-featured RDBMS with a small footprint, either embedded into a Java application or used as a database server.Widely used open source RDBMS infoDeveloped as objectoriented DBMS (Postgres), gradually enhanced with 'standards' like SQL
Primary database modelRelational DBMSRelational DBMSRelational DBMS infowith object oriented extensions, e.g.: user defined types/functions and inheritance. Handling of key/value pairs with hstore module.
Secondary database modelsSpatial DBMSDocument store
Spatial DBMS
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score4.40
Rank#91  Overall
#46  Relational DBMS
Score8.30
Rank#54  Overall
#32  Relational DBMS
Score614.85
Rank#4  Overall
#4  Relational DBMS
Websitecloud.google.com/­spannerwww.h2database.comwww.postgresql.org
Technical documentationcloud.google.com/­spanner/­docswww.h2database.com/­html/­main.htmlwww.postgresql.org/­docs
DeveloperGoogleThomas MuellerPostgreSQL Global Development Group infowww.postgresql.org/­developer
Initial release201720051989 info1989: Postgres, 1996: PostgreSQL
Current release2.1.210, January 202215.1, November 2022
License infoCommercial or Open SourcecommercialOpen Source infodual-licence (Mozilla public license, Eclipse public license)Open 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 PostgreSQL: Fully managed PostgreSQL DBaaS hosting On-Premises and on clouds such as AWS, Azure, GCP and DigitalOcean with no vendor lock-in. Leverage any extension and get SSH access.
  • Aiven for PostgreSQL: Fully managed and hosted PostgreSQL® with 70+ extensions and orchestration tooling included.
Implementation languageJavaC
Server operating systemshostedAll OS with a Java VMFreeBSD
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.nonoyes infospecific XML-type available, but no XML query functionality.
Secondary indexesyesyesyes
SQL infoSupport of SQLyes infoQuery statements complying to ANSI 2011yesyes 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
JDBC
ODBC
ADO.NET
JDBC
native C library
ODBC
streaming API for large objects
Supported programming languagesGo
Java
JavaScript (Node.js)
Python
Java.Net
C
C++
Delphi
Java infoJDBC
JavaScript (Node.js)
Perl
PHP
Python
Tcl
Server-side scripts infoStored proceduresnoJava Stored Procedures and User-Defined Functionsuser 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 nodesShardingnonepartitioning 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.With clustering: 2 database servers on different computers operate on identical copies of a databaseSource-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 integrityyesyes
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACID infoStrict serializable isolationACIDACID
Concurrency infoSupport for concurrent manipulation of datayesyes, multi-version concurrency control (MVCC)yes
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)fine grained access rights according to SQL-standardfine 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 PostgreSQL is an easy-to-use graphical tool for PostgreSQL database development.
» more

DbVisualizer is equipping database professionals with the tools they need to build, manage and maintain state-of-the-art database technologies. It has sky-high user satisfaction and is the preferred tool for database professionals around the world. Customers include Tesla, Apple, Facebook, Deutsche Bank, NASA, and 25,000 others in 145 countries.
» more

The State of PostgreSQL 2022 survey is now open!
» more

pgDash: In-Depth PostgreSQL Monitoring.
» more

Datasentinel: Platform for Monitoring and Analyzing the performance problems of your PostgreSQL Clusters
» more

Aiven for PostgreSQL: The familiar open source PostgreSQL® that you know and love, with no proprietary features or add-ons that will lock you in.
» more

Percona: Database problems? Not on your watch.
Databases run better with Percona.
» more

Instaclustr: Fully Hosted & Managed PostgreSQL
» 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

EDB: BigAnimal is fully-managed PostgreSQL in the cloud from the database fanatics at EDB.
» 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

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

More resources
Google Cloud SpannerH2PostgreSQL
DB-Engines blog posts

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

PGCon 2023, PostgreSQL Conference for Users and Developers
Ottawa, Canada, 30 May 2023 - 2 June 2023

Recent citations in the news

Google Cloud and Deloitte Boost Grocery Associate Productivity and ...
20 January 2023, PR Newswire

Kroger upgrades to cloud-based IT architecture for retail operations
24 January 2023, Winsight Grocery Business

Kroger boosts associate productivity with Google Cloud, Deloitte ...
20 January 2023, Drug Store News

Database Futures with a Cockroach Labs Co-Founder
27 January 2023, Datanami

Google Cloud Spanner Introduces Free Trial Instances and Fine ...
24 September 2022, InfoQ.com

provided by Google News

What is PostgreSQL?
25 January 2023, Database Journal

Securing PostgreSQL from Cryptojacking Campaigns in Kubernetes
26 January 2023, CrowdStrike

Running Applications in Docker, Part 2: Table Joins in PostgreSQL
20 January 2023, Virtualization Review

Running Apps in Docker, Part 1: Instantiation and Using PostgreSQL
18 January 2023, Virtualization Review

Microsoft: Kubernetes clusters hacked in malware campaign via PostgreSQL
9 January 2023, BleepingComputer

provided by Google News

Job opportunities

Cloud Relational Database Engineer
Ford Motor Company, Dearborn, MI

Contractor - DevOps Engineer
ChaiOne, Remote

Senior Product Manager, Core Database
YugabyteDB, Remote

Architect - Cloud Infrastructure and Databases
Ford Motor Company, Dearborn, MI

Database Engineer
Miracle Software Systems, Michigan

Entry Level Django Developer
I28 Technologies Corporation, Remote

PostgreSQL Developer
Divi Technologies, Remote

Support Engineer
Ollie Pet, Remote

Backend Engineer, Tools + Integrations
PolicyFly, Remote

Site Reliability Engineer
Ollie Pet, Remote

jobs by Indeed



Share this page

Featured Products

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

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.

AllegroGraph logo

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

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.

Present your product here