The PostgreSQL language in Spanner Stay organized with collections Save and categorize content based on your preferences.
This page summarizes PostgreSQL language support in Spanner.
Spanner provides PostgreSQL language support byexpressing Spanner database features through a subset ofopen source PostgreSQL language constructs, with extensions added tosupport Spanner features like interleaved tables andhints.
For detailed information about this support, refer to these pages:
- Lexical structure and syntaxdescribes how to form valid PostgreSQL statements.
- Data definition (DDL)defines the syntax of DDL statements like
CREATE DATABASEandCREATETABLE. - Data manipulation (DML)defines the syntax of DML statements like
INSERTandUPDATE. - Queries defines thesyntax of the
SELECTstatement. - Subqueries defines thesyntax of subqueries.
- Data types describes thedata types that Spanner supports.
- Functionsdescribes the functions that Spanner supports.
- Stored proceduresdescribes stored procedures that come with Spanner.
- Known issues in the PostgreSQL interface for Spanner describes PostgreSQL languagefeatures that don't work as expected.
Spanner doesn't support several open source PostgreSQLfeatures, including the following:
- Triggers
- SERIAL
- Fine-grained concurrency control
- SAVEPOINT
- Transactional DDL
- Partial indexes
- Extensions
- Foreign data wrappers
- User-defined data types, functions and operators
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-17 UTC.