AlloyDB for PostgreSQL documentation
AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding
transactional workloads. It provides enterprise-grade performance and availability
while maintaining 100% compatibility with open-source PostgreSQL.
Not sure what database option is right for you? Learn more about
our database services.
Learn more about AlloyDB.
Start your proof of concept with $300 in free credit
-
Get access to Gemini 2.0 Flash Thinking
-
Free monthly usage of popular products, including AI APIs and BigQuery
-
No automatic charges, no commitment
View free product offers
Keep exploring with 20+ always-free products
Access 20+ free products for common use cases, including AI APIs, VMs, data warehouses,
and more.
training
Training and tutorials
AlloyDB AI Embedding lab
Get hands-on practice with creating and using vector embeddings using AlloyDB. This codelab guides you through setting up an AlloyDB cluster, integrating it with Vertex AI, and then applying a generative model to data queries.
107 minutes
Introductory
Free
training
Training and tutorials
Semantic search with AlloyDB PG_Vector
This lab walks you through building a semantic search web application for searching through movie plot summaries using AlloyDB vector search to find movies and similar movies. Signing in to Google Cloud Qwiklabs is required to access this lab.
135 minutes
Introductory
Free
use case
Use cases
Whitepaper: ScaNN for AlloyDB for PostgreSQL
Explains how ScaNN for AlloyDB for PostgreSQL achieves faster performance and improves memory footprint.
ScaNN
vector search
vector embeddings
vector indexing
use case
Use cases
Best practices for tuning ScaNN indexes
Provides recommendations about how to tune index parameters for optimal balance between recall and QPS.
ScaNN
optimization
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-04 UTC."],[[["AlloyDB for PostgreSQL is a fully-managed, PostgreSQL-compatible database designed for demanding transactional workloads, providing enterprise-grade performance and availability."],["AlloyDB offers 100% compatibility with open-source PostgreSQL, allowing seamless integration with existing PostgreSQL tools and applications."],["AlloyDB AI enables building generative AI applications, performing vector searches, and integrating with Vertex AI, expanding the database's capabilities beyond traditional workloads."],["Comprehensive resources, including quickstarts, guides, reference materials, and training labs, are available to help users get started and optimize their use of AlloyDB."],["Users can leverage features like the columnar engine to accelerate queries and Query Insights to analyze performance, improving the overall efficiency and effectiveness of their database operations."]]],[]]