Cloud SQL for PostgreSQL documentation

Cloud SQL for PostgreSQL is a fully-managed database service that helps you set up, maintain, manage, and administer your PostgreSQL relational databases on Google Cloud Platform.

Learn more

  • 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.

Explore self-paced training from Google Cloud Skills Boost, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services.
training
Training and tutorials

Learn how to connect a Ruby on Rails 5 app to Cloud SQL for PostgreSQL.

training
Training and tutorials

Learn how to connect to Cloud SQL from Cloud Functions.

use case
Use cases

Learn how to deploy Pega Platform, which is a business process management and customer relationship management (CRM) platform with Cloud SQL for PostgreSQL.

CRM Reference architecture

use case
Use cases

This checklist provides recommended activities to complete for launching a commercial application that uses Cloud SQL. This checklist focuses on Cloud SQL-specific activities.

Production Launch

use case
Use cases

Learn how to use Cloud SQL to enforce data residency requirements for data.

Data residency data

use case
Use cases

Learn how to use Secret Manager to store sensitive information about Cloud SQL instances and users as secrets.

Secret Manager secret

code sample
Code Samples

Use SQLAlchemy with your Cloud SQL for PostgreSQL database

code sample
Code Samples

Connecting to your Cloud SQL for PostgreSQL database in Node.js

code sample
Code Samples

Connecting your Cloud SQL for PostgreSQL database using PHP PDO

code sample
Code Samples

Simple examples of connecting to Cloud SQL for PostgreSQL using Go

code sample
Code Samples

This sample application demonstrates how to store data in Google Cloud SQL with a PostgreSQL database when running in Google App Engine Flexible Environment.

code sample
Code Samples

Use Terraform to create Cloud SQL for PostgreSQL instances with private networking options.

code sample
Code Samples

Connecting to Cloud SQL for PostgreSQL from a Java application

Related videos

Create an account to evaluate how our products perform in real-world scenarios.
New customers also get $300 in free credits to run, test, and deploy workloads.