• Docs
  • Cloud SQL
  • Documentation
  • PostgreSQL
  • Code samples
    Videos

    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

  • Connection Overview

  • Enable and disable high availability on an instance

  • Create and manage PostgreSQL databases

  • Create and manage PostgreSQL users

  • Export and import using pg_dump and pg_restore

  • Export and import using CSV files

  • Create backups

  • Create read replicas

  • gcloud sql command-line

  • Use the Cloud SQL Admin API

  • REST API

  • Best practices

  • Performance tips

  • Authorize requests

  • Configure VPC Service Controls

  • Cloud SQL Admin API error messages

  • Resources

  • Quotas and limits

  • Troubleshoot

  • Cloud SQL feature support by database engine

  • Release notes

  • Billing questions

  • Getting support

  • Security Bulletins

  • Training and tutorials

    Try Cloud SQL for PostgreSQL tutorials, courses, and self-paced training from Google Cloud Skills Boost.

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

    Learn how to connect to Cloud SQL from Cloud Functions.

    Use cases

    Explore use cases, reference architectures, whitepapers, best practices, and industry solutions.

    Learn how you can use a proxy that passes the results of a query through Cloud Data Loss Prevention (Cloud DLP) so the results returned are tokenized or de-identified.

    Security DLP

    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

    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

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

    Data residency data

    Code samples

    Dive into coding with examples that demonstrate how to use and connect Google Cloud services.

    Python SQLAlchemy

    Use SQLAlchemy with your Cloud SQL for PostgreSQL database

    Node.js sample

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

    PHP PDO

    Connecting your Cloud SQL for PostgreSQL database using PHP PDO

    Go web app sample

    Simple examples of connecting to Cloud SQL for PostgreSQL using Go

    .NET sample

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

    Java servlet

    Connecting to Cloud SQL for PostgreSQL from a Java application

    Videos

    Try Cloud SQL for yourself

    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.

    Try Cloud SQL free