# Cloud SQL for Postgre⁠SQL documentation

[Read product documentation](https://docs.cloud.google.com/sql/docs/postgres/features.md.txt) 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](https://docs.cloud.google.com/sql/docs/postgres/features.md.txt)

## Documentation resources

Find quickstarts and guides, review key references, and get help with common issues.

### Guides

-

  [Create instances](https://docs.cloud.google.com/sql/docs/postgres/create-instance.md.txt)

-

  [Connection overview](https://docs.cloud.google.com/sql/docs/postgres/connect-overview)

-

  [Enable and disable high availability on an instance](https://docs.cloud.google.com/sql/docs/postgres/configure-ha.md.txt)

-

  [Create and manage PostgreSQL databases](https://docs.cloud.google.com/sql/docs/postgres/create-manage-databases.md.txt)

-

  [Create and manage PostgreSQL users](https://docs.cloud.google.com/sql/docs/postgres/create-manage-users.md.txt)

-

  [Export and import using pg_dump, pg_dumpall, and pg_restore](https://docs.cloud.google.com/sql/docs/postgres/import-export/import-export-dmp.md.txt)

-

  [Export and import using CSV files](https://docs.cloud.google.com/sql/docs/postgres/import-export/import-export-csv.md.txt)

-

  [Create backups](https://docs.cloud.google.com/sql/docs/postgres/backup-recovery/backups.md.txt)

-

  [Create read replicas](https://docs.cloud.google.com/sql/docs/postgres/replication/create-replica.md.txt)

-

  [Build generative AI applications using Cloud SQL](https://docs.cloud.google.com/sql/docs/postgres/ai-overview.md.txt)

### Reference

-

  [Client libraries and sample code for Cloud SQL](https://docs.cloud.google.com/sql/docs/postgres/admin-api/libraries.md.txt)

-

  [gcloud sql command-line](https://docs.cloud.google.com/sql/docs/postgres/cloud-sdk.md.txt)

-

  [Use the Cloud SQL Admin API](https://docs.cloud.google.com/sql/docs/postgres/admin-api.md.txt)

-

  [REST API](https://docs.cloud.google.com/sql/docs/postgres/admin-api/rest.md.txt)

-

  [Best practices](https://docs.cloud.google.com/sql/docs/postgres/best-practices.md.txt)

-

  [Performance tips](https://docs.cloud.google.com/sql/docs/postgres/admin-api/how-tos/performance.md.txt)

-

  [Authorize requests](https://docs.cloud.google.com/sql/docs/postgres/admin-api/how-tos/authorizing.md.txt)

-

  [Configure VPC Service Controls](https://docs.cloud.google.com/sql/docs/postgres/admin-api/configure-service-controls.md.txt)

-

  [Cloud SQL Admin API error messages](https://docs.cloud.google.com/sql/docs/postgres/admin-api-error-messages.md.txt)

### Resources

-

  [Pricing](https://docs.cloud.google.com/sql/docs/postgres/pricing)

-

  [Quotas and limits](https://docs.cloud.google.com/sql/docs/postgres/quotas.md.txt)

-

  [Troubleshoot](https://docs.cloud.google.com/sql/docs/postgres/troubleshooting.md.txt)

-

  [Cloud SQL feature support by database engine](https://docs.cloud.google.com/sql/docs/feature_support.md.txt)

-

  [Release notes](https://docs.cloud.google.com/sql/docs/postgres/release-notes.md.txt)

-

  [Billing questions](https://docs.cloud.google.com/sql/docs/postgres/billing-questions.md.txt)

-

  [Getting support](https://docs.cloud.google.com/sql/docs/postgres/getting-support.md.txt)

-

  [Security bulletins](https://docs.cloud.google.com/sql/docs/postgres/security-bulletins.md.txt)

## Related resources

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

### [Using Cloud SQL for PostgreSQL with Ruby on Rails 5](https://docs.cloud.google.com/ruby/rails/using-cloudsql-postgres.md.txt)


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


Tutorial Training and tutorials

### [Connecting to Cloud SQL with Cloud Functions](https://codelabs.developers.google.com/codelabs/connecting-to-cloud-sql-with-cloud-functions/)


Learn how to connect to Cloud SQL from Cloud Functions.


Use case Use cases

### [Deploying Pega using Compute Engine and Cloud SQL](https://docs.cloud.google.com/solutions/deploying-pega-7-using-compute-engine-and-cloud-sql)


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

<br />

Use case Use cases

### [Production launch checklist](https://docs.cloud.google.com/sql/docs/postgres/launch-checklist.md.txt)


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

<br />

Primer Use cases

### [Data residency overview](https://docs.cloud.google.com/sql/docs/postgres/data-residency-overview.md.txt)


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

Data residency data

<br />

Primer Use cases

### [Use Secret Manager to handle secrets in Cloud SQL](https://docs.cloud.google.com/sql/docs/postgres/use-secret-manager.md.txt)


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

Secret Manager secret

<br />

Code sample Code Samples

### [Python SQLAlchemy](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/cloud-sql/postgres/sqlalchemy)


Use SQLAlchemy with your Cloud SQL for PostgreSQL database


Code sample Code Samples

### [Node.js sample](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/cloud-sql/postgres/knex)


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


Code sample Code Samples

### [PHP PDO](https://github.com/GoogleCloudPlatform/php-docs-samples/tree/main/cloud_sql/postgres/pdo)


Connecting your Cloud SQL for PostgreSQL database using PHP PDO


Code sample Code Samples

### [Go web app sample](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/cloudsql/postgres/database-sql)


Simple examples of connecting to Cloud SQL for PostgreSQL using Go


Code sample Code Samples

### [.NET sample](https://github.com/GoogleCloudPlatform/dotnet-docs-samples/tree/master/cloud-sql/postgres)


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

### [Terraform for Cloud SQL networking](https://github.com/GoogleCloudPlatform/cloudnetworking-config-solutions)


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


Code sample Code Samples

### [Java servlet](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/cloud-sql/postgres/servlet)


Connecting to Cloud SQL for PostgreSQL from a Java application


## Related videos