Spanner release notes

This page documents production updates to Spanner. You can periodically check this page for announcements about new or updated features, bug fixes, known issues, and deprecated functionality.

You can see the latest product updates for all of Cloud de Confiance by S3NS on the Cloud de Confiance page, browse and filter all release notes in the Cloud de Confiance console, or programmatically access release notes in BigQuery.

To get the latest product updates delivered to you, add the URL of this page to your feed reader, or add the feed URL directly.

April 04, 2025

Feature

Spanner includes the PARAMETER_DEFAULT column in the INFORMATION_SCHEMA.PARAMETERS table. This column returns the default value of change stream read functions parameters.

March 10, 2025

Feature

Tiered storage is Generally Available in Spanner. Tiered storage is a fully-managed feature that lets you store your data across solid-state drives (SSD) or hard disk drives (HDD). Using tiered storage lets you take advantage of both SSD storage, which supports the high performance of active data, and HDD storage, which supports infrequent data access at a lower cost. For more information, see Tiered storage.

March 04, 2025

Feature

You can create Spanner regional instance configurations in Stockholm, Sweden (europe-north2). For more information, see Cloud de Confiance locations and Spanner pricing.

Feature

The following multi-region instance configuration is available in Europe - eur7 (Milan/Frankfurt/Turin).

February 28, 2025

Feature

Full-text search is generally available for PostgreSQL-dialect databases.

February 20, 2025

Feature

The Java and Go clients for Spanner implement multiplexed sessions. This allows all requests to be concurrently sent over a single session, thus eliminating the requirement that you define the minimum and maximum session count. Instead, you can use any number of requests to the configured gRPC channels. This approach eliminates the possibility of session leaks and reduces the occurrences of Transaction outcome unknown errors. You must set an environment variable in your client to opt in to this feature. For more information, see Multiplexed sessions.

February 10, 2025

Feature

Custom organization policies are generally available for Spanner. For more information, see Add a custom organization policy.

February 05, 2025

Feature

Informational foreign keys are available in Spanner. Informational foreign keys don't enforce referential integrity and are used to declare the intended logical data model for query optimization. Enforced foreign keys, which enforce referential integrity, are also available.

Informational foreign keys are supported by GoogleSQL only. Enforced foreign keys are supported by GoogleSQL and PostgreSQL.

For more information, see the following:

January 30, 2025

Feature

The Spanner index advisor is Generally Available in GoogleSQL and PostgreSQL-dialect databases. The index advisor analyzes your queries to recommend new indexes or changes to existing indexes to improve the performance of your queries. For more information, see Use the Spanner index advisor.

Feature

Spanner supports SERIAL and AUTO_INCREMENT DDL syntax. SERIAL is available in PostgreSQL-dialect databases and AUTO_INCREMENT is available in GoogleSQL. They streamline the ability to generate IDENTITY columns as primary keys. For more information, see SERIAL and AUTO_INCREMENT.

January 28, 2025

Feature

You can downgrade your Spanner instance to a lower-tier edition. For more information, see Downgrade the edition.

January 27, 2025

Feature

Spanner supports the SELECT…FOR UPDATE query syntax in GoogleSQL and PostgreSQL-dialect databases. When you use the SELECT query to scan a table, add a FOR UPDATE clause to enable exclusive locks on the scanned data in order to reduce aborts for workloads that operate on the same data concurrently. This is similar to the LOCK_SCANNED_RANGES hint (GoogleSQL and PostgreSQL). For more information, see Use SELECT…FOR UPDATE.

January 15, 2025

Feature

Spanner supports query statistics for previously executed partitioned data manipulation language (partitioned DML) statements. For more information, see Query statistics.

January 10, 2025

Feature

Monitor and troubleshoot queries that are running in your Spanner instance. Active queries are long-running queries that might affect the performance of your instance. Monitoring these queries can help you identify causes of instance latency and high CPU usage. For more information, see Monitor active queries.

December 12, 2024

Feature

Spanner supports IDENTITY columns. IDENTITY columns lets you generate unique integer values for key and non-key columns, and aligns with the ANSI standard. For more information, see IDENTITY columns.

December 02, 2024

Announcement
Feature

A predefined Identity and Access Management (IAM) role is available that lets you query a Spanner database using Data Boost. For more information, see details about the Spanner Database Reader with Data Boost IAM role and Run federated queries with Data Boost.

November 25, 2024

Feature

Default backup schedules are available and automatically enabled for all new instances. You can enable or disable default backup schedules in an instance when creating the instance or by editing the instance later. You can also let default backup schedules for new databases in existing instances. You can edit or delete the default backup schedule once it's created.

When enabled, Spanner creates a default backup schedule for every new database created in the instance. The default backup schedule creates a full backup every 24 hours. These backups have a retention period of 7 days.

For more information, see Default backup schedules.

November 19, 2024

Feature

Spanner supports the ALL_DIFFERENT graph predicate in GoogleSQL-dialect databases. You can use this predicate to see if the graph elements in a list are mutually distinct.

November 18, 2024

Feature

You can create Spanner regional instance configurations in Querétaro, Mexico (northamerica-south1). For more information, see Google Cloud locations and Spanner pricing.

November 05, 2024

Feature

Spanner supports client-side metrics for Java and Go applications. These metrics can be used with server-side metrics for faster troubleshooting of performance and latency issues.

These metrics are included in the latest Spanner client libraries for the following languages:

  • Java in version 6.81.0 and later
  • Go in version 1.71.0 and later

For more information, see View and manage client-side metrics.

October 28, 2024

Feature

Query Optimizer version 8 is available. Version 7 remains the default optimizer version.

October 18, 2024

Feature

Spanner Graph supports the following functions:

Feature

Spanner supports customer-managed encryption keys (CMEK) to protect databases in custom, dual-region, and multi-region instance configurations. For more information, see Customer-managed encryption keys (CMEK) overview.

October 17, 2024

Feature

Spanner offers usage statistics for database splits along with the associated System insights dashboard to help you identify hotspots on affected rows in your database.

Feature

Directed reads are Generally Available. This feature provides the flexibility to route read-only transactions and single reads to a specific replica type or region in a multi-region instance configuration. For more information, see Directed reads.

October 10, 2024

Feature

Spanner lets you create incremental backups through a backup schedule. You can specify when and how often backups are created, and how long they're retained.

An incremental backup contains only the data that has changed since the previous backup. Incremental backups typically consume less storage, and can help reduce your storage costs.

Incremental backups are available on the Enterprise and Enterprise Plus editions.

For more information about incremental backups, see Backups overview.

Feature

Spanner is available on Database Center in Preview. You can track your Spanner resources in the fleet inventory section and the resource table in the Database Center. You can also use Database Center to monitor the following health issues for your Spanner resources:

  • Short backup retention
  • Last backup older than 24h
  • Not replicating across regions

For more information about Database Center, see Database Center overview. For more information about health issues supported for Spanner, see Supported health issues.

Feature

An open source Cassandra to Spanner proxy adapter is available. You can use it to migrate workloads from Cassandra to Spanner without making any changes to your application logic. For more information, see Cassandra to Spanner proxy adapter.

October 09, 2024

Feature

Spanner supports a subset of pg_system_catalog tables and views. For more information, see pg_system_catalog tables and pg_system_catalog views.

October 07, 2024

Feature

Full-text search overview is generally available.

Feature

Spanner lets you create and manage backup schedules. You can use backup schedules to meet your organization's data protection and compliance needs. You can specify the following when creating a backup schedule:

  • When and how often your databases are backed up.
  • The retention duration of the backups created.
  • The encryption type of the backups created.

For more information about backup schedules, see Backups overview.

October 04, 2024

Feature

Spanner supports the SAFE_TO_JSON function in GoogleSQL-dialect databases. You can use this function to convert SQL objects to JSON objects. Unlike TO_JSON, this function converts invalid JSON types to JSON null values, rather than errors.

October 03, 2024

Feature

You can create an external dataset in BigQuery that links to an existing database in Spanner. This feature is in Preview.

October 02, 2024

Feature

You can perform vector similarity search using the Generally Available K-nearest neighbors (KNN) vector distance functions:

  • COSINE_DISTANCE()
  • EUCLIDEAN_DISTANCE()
  • DOT_PRODUCT()

For more information, see Perform vector similarity search in Spanner by finding the K-nearest neighbors.

Feature

The FLOAT32 (GoogleSQL) and float4/real (PostgreSQL) data types are Generally Available.

October 01, 2024

Feature

Spanner supports end-to-end tracing in preview, along with client-side tracing in the Java and Go client libraries. You can opt-in for end-to-end traces to have more visibility into the application to Spanner latencies. For more information, see Trace collection overview.

September 25, 2024

Feature

Spanner supports the spanner.farm_fingerprint() hash function in PostgreSQL-dialect databases.

September 24, 2024

Feature

Spanner offers editions, a tier-based pricing model that provides greater flexibility, better cost transparency, and opportunities for cost savings. You can choose between the Standard, Enterprise, and Enterprise Plus editions, letting you pick the right set of capabilities to fit your needs and budget. To learn more, see Spanner editions overview and this blog post.

Feature

Spanner is enabled for use with Cloud KMS Autokey.

Using keys generated by Autokey can help you consistently align with industry standards and recommended practices for data security, including the HSM protection level, separation of duties, key rotation, location, and key specificity. Keys requested using Autokey function identically to other Cloud HSM keys with the same settings.

For more information, see Customer-managed encryption keys (CMEK) overview. To learn more about Cloud KMS Autokey, see the Autokey overview.

August 13, 2024

Feature

The following multi-region instance configuration is available in North America - nam16 (Iowa/Northern Virginia/Columbus).

August 01, 2024

Feature

Spanner offers Spanner Graph in Preview, which unites purpose-built graph database capabilities with Spanner. Spanner Graph includes a graph query interface compatible with the ISO Spanner Graph Language (GQL) standards, and interoperability between relational and graph models. For more information, see the following:

Feature

Spanner full-text search (Preview) lets you search a table to find words, phrases, or integers, instead of just searching for exact matches in structured fields. Spanner full-text search capabilities also include making spelling corrections, automating language detection of search input, and ranking search results. To learn more, see the Full-text search overview.

July 18, 2024

Feature

Spanner includes the JSON_ARRAY() and JSON_OBJECT() functions for building JSON types in GoogleSQL. For more information, see JSON functions in GoogleSQL.

July 16, 2024

Feature

Spanner supports the following GoogleSQL JSON functions:

  • BOOL_ARRAY: Converts a JSON array of booleans to a SQL ARRAY<BOOL> value.
  • FLOAT32: Converts a JSON number to a SQL FLOAT32 value.
  • FLOAT32_ARRAY: Converts a JSON array of numbers to a SQL ARRAY<FLOAT32> value.
  • FLOAT64_ARRAY: Converts a JSON array of numbers to a SQL ARRAY<FLOAT64> value.
  • INT64_ARRAY: Converts a JSON array of numbers to a SQL INT64_ARRAY value.
  • STRING_ARRAY: Converts a JSON array of strings to a SQL ARRAY<STRING> value.
Feature

Spanner supports the following PostgreSQL JSONB functions:

  • jsonb_array_elements()
  • spanner.bool_array()
  • spanner.float32_array()
  • spanner.float64_array()
  • spanner.int64_array()
  • spanner.string_array()

For more information, see JSONB functions and Spanner specific JSONB functions.

Feature

Spanner supports the GoogleSQL PDML_MAX_PARALLELISM statement-level hint. For more information, see Statement hints.

Feature

The following are supported for the INSERT statement:

Feature

Spanner supports geo-partitioning (in Preview). You can use geo-partitioning to segment and store rows in your database table across different configurations. For more information, see the Geo-partitioning overview.

July 12, 2024

Feature

Spanner supports dual-region instance configurations in Australia, Germany, India, and Japan. Dual-region configurations let you replicate data in multiple zones across two regions in a single country. This helps you meet your data residency requirements, while taking advantage of 99.999% availability. For more information, see Dual-region configurations.

Feature

Spanner supports the approximate nearest neighbor (ANN) distance functions (APPROX_COSINE_DISTANCE(), APPROX_EUCLIDEAN_DISTANCE(), and APPROX_DOT_PRODUCT()) in the GoogleSQL dialect (in Preview). For tables with a lot of vector data, you can create a vector index using DDL statements. This accelerates similarity searches and nearest neighbor queries using these functions in standard SQL, without copying the data to a separate system. For more information, see Find approximate nearest neighbors to index and query vector embeddings in Spanner.

July 11, 2024

Feature

You can use EXPORT DATA statements to reverse ETL BigQuery data to Spanner. This feature is in Preview.

July 03, 2024

Feature

Multiplexed sessions are generally available. Multiplexed session is a new session management model which simplifies the pool management in clients. For more information, see Multiplexed sessions.

June 20, 2024

Feature

Named schemas is generally available. With named schemas, you can group database objects in a namespace to avoid naming conflicts and collectively manage their fine-grained access control permissions, see Named schemas.

June 17, 2024

Feature

Generated columns don't require the STORED attribute. Without this attribute, the generated column is evaluated at query or index time and doesn't require additional storage or write overhead. For more information, see Create and manage generated columns.

May 31, 2024

Feature

Spanner supports the protocol buffer data type in GoogleSQL. For more information, see Work with protocol buffers in GoogleSQL.