> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensor9.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PostgreSQL

> PostgreSQL service choices, deployment ownership, and configuration for customer installs

![Vendor service requirements and customer selections form an install service profile after field-ownership and supplied-version checks. The PostgreSQL catalog distinguishes a cloud service in the customer's account from a database managed by the appliance. Arrows show configuration, not database traffic.](https://mintcdn.com/tensor9/s_wzotuX7Mm7d3ol/images/diagrams/customer-postgresql-configuration-wide-dark.svg?fit=max\&auto=format\&n=s_wzotuX7Mm7d3ol\&q=85\&s=b7d5208ffc98bb5bfd5c5e6770c97823)

![Vendor service requirements and customer selections form an install service profile after field-ownership and supplied-version checks. The PostgreSQL catalog distinguishes a cloud service in the customer's account from a database managed by the appliance. Arrows show configuration, not database traffic.](https://mintcdn.com/tensor9/s_wzotuX7Mm7d3ol/images/diagrams/customer-postgresql-configuration-wide-light.svg?fit=max\&auto=format\&n=s_wzotuX7Mm7d3ol\&q=85\&s=81ad000d5100e828ffca21bc27c07b06)

![Vendor service requirements and customer selections form an install service profile after field-ownership and supplied-version checks. The PostgreSQL catalog distinguishes a cloud service in the customer's account from a database managed by the appliance. Arrows show configuration, not database traffic.](https://mintcdn.com/tensor9/s_wzotuX7Mm7d3ol/images/diagrams/customer-postgresql-configuration-stacked-dark.svg?fit=max\&auto=format\&n=s_wzotuX7Mm7d3ol\&q=85\&s=3aca5f52abf8a9583035ecc40c9936fd)

![Vendor service requirements and customer selections form an install service profile after field-ownership and supplied-version checks. The PostgreSQL catalog distinguishes a cloud service in the customer's account from a database managed by the appliance. Arrows show configuration, not database traffic.](https://mintcdn.com/tensor9/s_wzotuX7Mm7d3ol/images/diagrams/customer-postgresql-configuration-stacked-light.svg?fit=max\&auto=format\&n=s_wzotuX7Mm7d3ol\&q=85\&s=d841b113251ff29d63f936d2ed0a100b)

Your application's form factor defines its PostgreSQL choices. You declare the service requirements and tuning; your customer selects an offered option and supplies its customer-owned configuration. The install profile combines those inputs after checking field ownership and any supplied version against applicable version constraints.

## What the customer provides

Start with the PostgreSQL option offered by your application's setup. The configuration depends on that option, rather than one connection form shared by every PostgreSQL deployment.

| Selection | What to establish |
| - | - |
| **Cloud-managed PostgreSQL** | The cloud environment and the offered database service. Database resources are created in the customer's environment by the selected service adapter. |
| **Appliance-managed PostgreSQL** | The Kubernetes environment and the capacity the database needs. Review database sizing and persistent storage alongside the application's other workloads. |

See [service configuration](https://docs.tensor9.com/byoc/customer/configuration/services.md) for how service choices fit into customer setup, and [secrets](https://docs.tensor9.com/byoc/customer/configuration/secrets.md) for supplying secret references.

## What changes in the deployment stack

A service adapter generates the database resources for the selected destination. For an application whose origin stack uses AWS RDS PostgreSQL or Aurora PostgreSQL, the supported mappings include:

* **CloudNativePG on Kubernetes.** The deployment includes PostgreSQL cluster resources and the corresponding credential Secret. The database configuration is derived from the origin's version, storage, replica, and resource settings.
* **Cloud SQL for PostgreSQL on Google Cloud.** The deployment includes a Cloud SQL instance and, when the origin declares an application database, that database. The mapping carries supported engine, storage, availability, and backup settings into the destination configuration.

For example, selecting an offered CloudNativePG mapping produces a database on the install's Kubernetes cluster. Selecting an offered Cloud SQL mapping produces a managed database in the customer's Google Cloud environment. These choices have different operational ownership and configuration.

Review the [RDS PostgreSQL service adapter](https://docs.tensor9.com/byoc/service-adapters/aws/databases-storage/rds-postgresql.md) for the selected mapping's behavior, including version, extension, networking, authentication, and backup differences. Check the application's database requirements against that mapping before choosing it.

## Other PostgreSQL integrations

PostgreSQL also appears in Kubernetes control-plane storage and Cloud Adapter backend storage. These uses have different configuration and ownership from an application's relational database. See [Private Kubernetes](https://docs.tensor9.com/byoc/form-factor/kubernetes.md) and [Cloud Adapter](https://docs.tensor9.com/cloud-adapter-access.md) for those separate areas.

## What the customer takes on

Agree on operational ownership when choosing the database:

| Database deployment | Operational responsibility |
| - | - |
| **A managed cloud service in the customer's account** | The customer owns the cloud resources, access configuration, capacity choices, backup policy, and incident response. The cloud provider operates the managed database service. |
| **A database managed by the appliance** | The database runs on the install's Kubernetes infrastructure. Account for database CPU, memory, persistent storage, backup configuration, and upgrades in the install's operations. |

## What stays your responsibility

You remain responsible for your application's schema, migrations, query behavior, and data correctness. Confirm that the selected PostgreSQL version, extensions, and authentication model meet the application's requirements.

Plan any data transfer or migration as part of a database change. A service choice describes the destination configuration; moving an existing application's data also requires an application-appropriate migration and validation procedure.

## Authentication and rotation

Authentication is part of the selected database mapping. Use that mapping's authentication procedure to plan database permissions, credential storage, and rotation. Keep application database logins separate from the cloud credentials used to deploy and manage the database.

When setup requests a secret reference, use the designated secret store. Coordinate credential changes with the component that consumes the secret so it can establish new connections with the updated credential. See [credentials and secrets](https://docs.tensor9.com/byoc/customer/security/credentials-and-secrets.md) for the customer's credential responsibilities.

## Where this fits

[Customer-Provided Services](https://docs.tensor9.com/byoc/customizations/customer-provided-services.md) describes the broader configuration area. [Service adapters](https://docs.tensor9.com/byoc/service-adapters/overview.md) explains mappings between an origin service and a destination service. Use the service and integration selected for your install to determine the PostgreSQL configuration and ownership that apply.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.