Amazon RDS for PostgreSQL or CloudNativePG: when each one fits
Amazon RDS for PostgreSQL fits teams that want AWS to handle failover, backups and patching, while CloudNativePG fits teams that already run Kubernetes and have the people to operate stateful workloads on it. The choice usually turns on a renewal, a data residency rule or a need for more control over extensions and the upgrade calendar, and the answer depends on what your organization can run at 2 a.m. without the vendor.
Start with four questions. First, how mature is your Kubernetes platform: do you already run stateful workloads with tested storage classes, backup restores and node drains, or would the database be the first one? Second, what storage and monitoring capacity can you commit, including volume performance, WAL archive retention and alerting on replication lag? Third, which extensions and shared_preload_libraries settings does the application need, and are they available on RDS and in your image? Fourth, who is on call for a failed primary, and does that person have database administration experience, not only Kubernetes experience?
If most answers point to a mature platform team with spare capacity, CloudNativePG gives you operator-managed failover, backups to object storage and declarative upgrades that live in version control. If they point to a small team, an unclear on-call rota or a need for a managed support contract, RDS Multi-AZ and automated backups remove work that you would otherwise carry. Confirm the current RDS features and prices in your region with AWS, and confirm the CloudNativePG version and PostgreSQL major version your platform supports with the project documentation before you commit to either path.
Which option fits which scenario
This table matches common buyer situations to the option that usually fits better, and explains the condition that makes each advantage matter. Read each row against your own constraints: a single factor such as residency or Kubernetes staffing often decides the choice, so check the conditions column before the default.
| Scenario | Better fit | Why it matters under these conditions |
|---|---|---|
| Existing Kubernetes platform with an in-house SRE team | CloudNativePG | Failover, backups and upgrades run as declarative resources the team already reviews in Git, so the database follows the same release and policy process as other workloads. |
| Small team with no Kubernetes operations experience | Amazon RDS for PostgreSQL | Running CloudNativePG well means owning storage classes, etcd-backed control plane health and node upgrades. Without that skill, the managed service removes a layer of operational risk. |
| Strict data residency inside a private cloud or data center | CloudNativePG | Data, backups and the operator stay inside infrastructure you control, which simplifies evidence for residency reviews. Confirm where Barman Cloud backups land in your object store. |
| Heavy use of PostgreSQL extensions | CloudNativePG | RDS only offers extensions Amazon has approved. A self-managed image lets you test and install the extensions your application needs, though each one must be validated against your version and operator build. |
| Regular in-place major upgrades on your own calendar | CloudNativePG | You choose when to run logical replication or pg_upgrade and can stage the upgrade across clusters. On RDS, the upgrade timing follows the service's own schedule and Extended Support rules. |
| Team already standardized on AWS managed services | Amazon RDS for PostgreSQL | Multi-AZ, automated backups and IAM integration are already part of the operating model, so fewer components need new monitoring, patching and on-call runbooks. |
| Need for control over backup and restore testing | CloudNativePG | Point-in-time recovery from WAL archives and volume snapshots can be scheduled and restore-tested on your terms. Ask the vendor to show a restore into a separate cluster as part of acceptance. |
How CloudNativePG compares with RDS Multi-AZ failover and backups
The core difference is who operates failover and backups. Amazon RDS handles Multi-AZ failover and automated backups as managed features of the service, so your team configures them and relies on AWS to run them. CloudNativePG moves those mechanics into your Kubernetes cluster. Its operator uses the Kubernetes API server to detect a failed primary and promote a replica, without external tools such as Patroni. It also supports quorum-based failover and synchronous replication, so you decide how many standbys must confirm a commit before it is acknowledged. Those settings live in the Cluster resource, and your platform team owns the trade-off between data safety and write latency.
Backups follow the same pattern. CloudNativePG supports backups to object storage through the Barman Cloud plugin, WAL archiving for point-in-time recovery, and volume snapshot backups. On RDS, automated backups and point-in-time restore are switched on through the instance settings. With CloudNativePG, you must choose the object store, credentials, retention and schedule, and you must confirm that WAL archiving is running. PostgreSQL's own documentation states that it does not detect a primary failure or notify a standby by itself, so a self-hosted setup always depends on an operator or external tooling to do that job. Confirm the operator version and the object storage bucket policy before go-live.
The advantage of CloudNativePG appears only when your team can operate and test these mechanisms. Run a scheduled failover drill, restore a backup to a separate namespace, and time how long a point-in-time recovery takes. Record the results against your recovery point and recovery time objectives. If your team cannot run those drills, RDS Multi-AZ and its managed backups may fit your risk profile better, and the Kubernetes skills and monitoring that CloudNativePG requires become a cost you carry rather than a benefit.
Capabilities side by side: RDS for PostgreSQL and CloudNativePG
This table compares how Amazon RDS for PostgreSQL and CloudNativePG on Kubernetes handle failover, replication, backups, pooling, upgrades, authentication, extensions and licensing. Where our researched facts do not cover an RDS behavior, the cell tells you which AWS documentation or console setting to confirm. Read it as a checklist for your own requirements, not a ranking.
| Capability | Amazon RDS for PostgreSQL | CloudNativePG on Kubernetes |
|---|---|---|
| High availability and failover | Multi-AZ standby with managed failover; confirm the failover behavior and timing in the RDS Multi-AZ documentation | Operator integrates with the Kubernetes API server for automated failover without external tools such as Patroni |
| Synchronous replication | Available through the RDS configuration; confirm the supported settings for your engine version in AWS documentation | Supports quorum-based failover and synchronous replication |
| Backups and point-in-time recovery | Automated backups with point-in-time restore; confirm retention limits and restore options in the console | Backups to object storage via the Barman Cloud plugin, volume snapshots and WAL archiving with point-in-time recovery |
| Connection pooling | RDS Proxy is a separate AWS service; confirm whether your workload needs it and its pricing | Built-in connection pooling with PgBouncer |
| Supported PostgreSQL versions | Versions are set by AWS and past standard support incur Extended Support; confirm the calendar in the RDS console | Manages PostgreSQL versions supported by the PostgreSQL Global Development Group; you choose when to upgrade |
| Upgrade paths | In-place major upgrades managed by AWS; confirm downtime and rollback steps for your instance class | Declarative upgrades, with pg_upgrade and logical replication available from PostgreSQL itself |
| Authentication methods | IAM database authentication and password methods; confirm the options for your engine version | PostgreSQL methods include password, GSSAPI, LDAP, certificate, PAM and OAuth |
| Superuser and extension access | Restricted rds_superuser role and a curated extension list; confirm extensions in the RDS documentation | Full superuser access and any extension you can package into the image, subject to your own testing |
| License terms | Proprietary AWS managed service billed by usage | CloudNativePG is Apache 2.0 and PostgreSQL uses the PostgreSQL License, a liberal permissive license |
Data location, hosting and compliance implications
Both models can meet a residency or regulated-workload requirement, but the control boundary moves. With RDS, AWS operates the database host and much of the key and backup plumbing, while with CloudNativePG your team owns the Kubernetes cluster, its secrets and the evidence trail that comes with it.
Where data physically lives
On RDS, database files, backups and snapshots sit in the AWS Region you select. On CloudNativePG, data sits on persistent volumes in whichever cluster, data center or air-gapped network you choose, and backups go to the object storage you point the Barman Cloud plugin at. Confirm the region or site of every volume, snapshot and bucket, including copies made for disaster recovery, against your residency rule.
CloudNativePG docsWho holds keys and backup storage
RDS encryption keys are managed through AWS Key Management Service, and AWS runs the backup service. With CloudNativePG, your team chooses the key source, the storage encryption and the backup bucket, and must manage key rotation and bucket policies itself. This matters most when a regulator or customer asks who can decrypt backups. Ask for the key custody model in writing before design sign-off.
Identity and certificate-based access
PostgreSQL supports password, GSSAPI, LDAP, certificate, PAM and OAuth authentication, and the Kubernetes API accepts X.509 client certificates and OpenID Connect tokens. RDS users typically authenticate through IAM or database passwords, while CloudNativePG access spans two planes: Kubernetes RBAC for operators and PostgreSQL roles for applications. Map each identity to one authentication method and document who can reach the cluster API as well as the database.
Kubernetes Secrets stored unencrypted by default
Kubernetes stores Secrets unencrypted in etcd by default, and database credentials and backup keys typically end up there. Before a regulated workload goes live, configure encryption at rest for etcd, restrict list and watch access with least-privilege RBAC, or pull credentials from an external store through the Secrets Store CSI Driver. An auditor will test this control, so keep the configuration and the access review together.
Audit and evidence trail
RDS publishes events and logs through AWS services, so the evidence trail is partly provided for you. On CloudNativePG, the Kubernetes API audit log, PostgreSQL logs, backup job records and restore tests all come from your own tooling and must be retained and centralized. Compliance teams usually ask for proof of backup restores, not only backup schedules, so plan a recurring restore test and keep its results.
Shared responsibility with AWS
On RDS, AWS manages the host operating system, database engine patching mechanics and hardware, while your team controls parameters, users, access and data. With CloudNativePG, your team also owns the Kubernetes control plane, etcd backups, node hardening and CIS-aligned configuration, unless you buy a managed Kubernetes service. Write the split as a responsibility matrix for each control family that your assessor will review.
CIS Kubernetes BenchmarkHow CloudNativePG fits into your Kubernetes cluster
The diagram starts with application pods connecting through a PgBouncer pooler to the primary PostgreSQL instance, which CloudNativePG manages through persistent volume claims rather than StatefulSets. Standby instances replicate from the primary, and the Kubernetes API server coordinates failover without an external tool such as Patroni. Base backups and WAL archives leave the cluster through the Barman Cloud plugin into an object storage bucket in a separate account, which is the trust boundary to review. Check who holds write access to that bucket, how the backup credentials are stored as Kubernetes Secrets, and whether the monitoring stack can reach the instances. This diagram is illustrative.
Illustrative layout of CloudNativePG components, with the cluster and object storage trust boundary marked.
Who runs the database day to day on each option
Platform engineers own the Kubernetes layer that CloudNativePG depends on. Under Amazon RDS, AWS operates the database hosts, patching infrastructure and underlying storage, so your team mainly sets instance classes, parameter groups and maintenance windows. Under CloudNativePG, most of that work moves into your cluster.
- Kubernetes upgrade calendar: Kubernetes releases arrive about three times per year on a cycle of about 14 weeks, and the project maintains only the three most recent minor releases. The version skew policy requires kube-apiserver to move one minor version at a time, ahead of the controller manager, scheduler and kubelets.
- etcd capacity and quorum: etcd should run with an odd number of members, and the Kubernetes documentation recommends five members in production. Plan the control plane with at least three nodes behind a TCP load balancer on port 6443.
- etcd backup plan: Take regular snapshots with etcdctl snapshot save and rehearse restores with etcdutl. Without this, a control plane failure can take the database cluster with it.
- Storage for persistent volume claims: CloudNativePG manages PVCs directly, so your team sizes storage classes, volume snapshot support and node pools for database I/O.
- Monitoring and restore tests: Build alerts for replication lag, failover events and operator health, and schedule backup restore tests from object storage and WAL archives. AWS reports these signals in the RDS console, but a self-hosted cluster has no equivalent until you build it.
Confirm that your team already runs a Kubernetes distribution with a supported upgrade path and a tested etcd backup job before committing to this option.
Database administrators own the schema, roles, extensions and version lifecycle. RDS offers its own extension catalog and runs minor patching inside maintenance windows. With CloudNativePG, the team chooses which extensions go into the container image and runs major upgrades on its own calendar.
- Extension availability: RDS has a managed extension list, so check each extension your applications use against the images you will build. Test extension upgrades in a staging cluster before production.
- Major upgrade method: PostgreSQL documents pg_upgrade, dump and restore, and logical replication for major upgrades. Logical replication works between major versions and can keep downtime to several seconds, which makes it the usual choice for a planned cutover.
- Minor release rhythm: Minor releases arrive at least once every three months and do not change the storage format, so they replace executables and restart. Schedule them through the CloudNativePG cluster specification and keep a rollback path.
- Connection pooling: CloudNativePG includes PgBouncer. Pick the pool mode that matches how your applications use transactions and sessions, then retest their behavior.
- Support lifecycle: Track end-of-support dates for each major version. PostgreSQL 14 is supported until November 12, 2026, while PostgreSQL 18 is supported until November 14, 2030.
Before cutover, agree the extension list and upgrade window with application owners so that schema changes and version moves do not surprise them.
Security teams review how people and services authenticate, how certificates are issued and rotated, and where secrets are stored. RDS ties much of this to AWS identity and key management services. With CloudNativePG, your team designs and evidences these controls across PostgreSQL, the Kubernetes API and the secrets store.
- PostgreSQL authentication: Review
pg_hba.confrules. PostgreSQL documents password, GSSAPI, LDAP, certificate, PAM and OAuth methods, and PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM. - Kubernetes identity and RBAC: Kubernetes authenticates users with X.509 client certificates, OpenID Connect or JWT tokens, webhooks or an authenticating proxy. Use RBAC to limit who can read Secrets in database namespaces.
- Secrets at rest: Secrets are stored unencrypted in etcd by default. Enable encryption at rest or use an external store through the Secrets Store CSI Driver, as the Kubernetes Secrets good practices page describes.
- Pod and node hardening: Apply Pod Security Standards to database namespaces and map cluster settings to the controls in the CIS Kubernetes Benchmark that your assessor expects.
- Certificates and audit trails: Define how client and replication certificates are issued, rotated and revoked, and confirm where API server and database audit logs are kept and who can read them.
Ask for an access map that lists who can read etcd snapshots, since those backups hold Secret data and need the same protection as the live cluster.
What drives the cost of running PostgreSQL yourself on Kubernetes
The cost of CloudNativePG on Kubernetes is spread across components that RDS hides inside one hourly bill. On RDS, instance hours, Multi-AZ standby capacity, storage, IOPS and backup storage appear as separate line items, and any Extended Support charge for an old major version sits on top. On Kubernetes, the same workload is paid for as worker nodes sized for PostgreSQL pods, persistent volumes, object storage that holds Barman Cloud backups and WAL archives, monitoring, and the control plane and etcd that the cluster depends on. Most of those are invoices from a cloud provider or a hardware budget, and the largest recurring item is usually staff time. Ask whoever prices the work to show each of these as a separate line so you can compare them with your current RDS bill component by component.
Some costs are one-time and others recur. One-time costs include the initial cluster design, the migration itself, building the operator and monitoring pipeline, and restore testing of backups into a separate environment, which is the only way to confirm that point-in-time recovery works. Recurring costs include nodes, storage, object storage capacity, monitoring retention, support contracts, and the work of applying PostgreSQL minor releases, which PostgreSQL publishes at least once every three months, and major upgrades such as moving from version 14, whose support ends November 12, 2026, to a newer line. Database size, the number of replicas per cluster, backup retention, and the number of clusters drive these costs up. Consolidating databases onto fewer clusters, choosing the right storage class, and setting retention policies are the main levers that bring them down.
Before accepting a quote, ask the provider to state the assumed database size, replica count, backup retention window, restore-test frequency, and Kubernetes version and support model, including how node upgrades are scheduled. Ask for the on-call coverage model, who owns etcd backups, and how secrets such as database credentials are encrypted at rest. The quote should list the following: design and migration effort, operator installation and hardening, backup and restore testing, monitoring and alerting setup, runbooks, upgrade plan for PostgreSQL and Kubernetes, and ongoing support hours. Confirm each figure against your own environment and current vendor pricing, because no commercial price is supplied on this page.
How to move from Amazon RDS for PostgreSQL to CloudNativePG
This sequence moves a PostgreSQL database from RDS into a CloudNativePG cluster on the client's Kubernetes platform with a tested restore, a replicated copy kept in sync, and a short, planned write freeze at cutover. The result is a database the client's team can operate, back up and upgrade inside its own infrastructure.
Inventory extensions, roles and large objects
The client's database team and DeployOpen list every database on the RDS instance, the extensions in use, the roles and their grants, large objects, and any settings that RDS applies by default. DeployOpen checks each extension against the CloudNativePG image and the target PostgreSQL version, and flags anything that needs a replacement or a configuration change. The step is complete when the team signs off on a written inventory that lists each item as carried over, replaced or retired.
Choose a supported PostgreSQL major version
The client chooses the target major version, and DeployOpen confirms it against the PostgreSQL versioning policy and the support dates in that policy. PostgreSQL 18 is supported until November 14, 2030, so it is a candidate for a new deployment, while older majors should be checked against their end-of-support dates before selection. The output is a recorded decision that names the version, the support end date and the minor release to deploy.
Build the CloudNativePG cluster and backups
DeployOpen plans and implements the CloudNativePG cluster in the client's Kubernetes environment, including instance count, storage classes, PgBouncer pooling, TLS and authentication. Backups go to the client's object storage through the Barman Cloud plugin, with WAL archiving for point-in-time recovery. The client's platform team provides the Kubernetes cluster, storage, object storage buckets and identity integration. The step closes when a restore test rebuilds the cluster from backup to a named point in time and the result is verified.
Replicate from RDS with logical replication
The RDS parameter group must have rds.logical_replication enabled on the source, which requires a reboot, so the client should schedule that change with its own change process. DeployOpen then creates publications on RDS and matching subscriptions on the CloudNativePG cluster, and handles sequences and any objects that logical replication does not carry. The team monitors replication lag and confirms that row counts and checksums match for the agreed tables. The step is complete when the replica stays in sync under normal write load.
Test application connections through PgBouncer
Each application connection string is pointed at the PgBouncer service in the test environment, and DeployOpen runs the application test suite and load tests against the new cluster. The test covers authentication methods, pool sizing, prepared statements and session settings that the pooler mode may affect. The client's application owners review the results and confirm the connection settings. The step is done when the test run passes and the approved connection configuration is written down.
Cut over with a short write freeze
At an agreed window, the application stops writes to RDS, DeployOpen waits for the subscriber to catch up, and then the sequences are synchronized and the application connection strings are switched to the CloudNativePG service. The client's on-call team watches error rates and replication status, and a rollback path back to RDS is kept ready for an agreed period. The step is complete when the application runs against the new cluster, and the cutover log records the freeze duration actually observed.
Decommission RDS after verification
After the client confirms the new cluster is stable, DeployOpen helps the team remove the logical subscription, take a final backup of RDS, and retire the instance according to the client's retention policy. Access keys, parameter groups, monitoring alarms and any unused snapshots are reviewed and removed. Finally, the runbooks for backup, failover and upgrades are handed over. The step closes with a signed decommissioning record and an updated inventory of what the platform now runs.
Questions buyers ask before moving from RDS to CloudNativePG
How much effort does moving from RDS to CloudNativePG take?
The effort depends mainly on how many databases, how large they are, which RDS features your applications rely on, and how many extensions and roles must come across. A small set of databases with standard extensions and a simple connection pattern is far less work than a fleet with custom parameter groups, large objects and bespoke monitoring. Your team also needs a Kubernetes platform that already handles storage classes, backups to object storage, network policies and secrets. Ask any provider to break the work into inventory, cluster build, data sync, cutover and post-cutover tuning, each with its own written deliverable before work starts.
Can our own team run the move without outside help?
Yes, if your team already operates PostgreSQL and Kubernetes in production and has tested restores. The hard parts are not the install, they are the cutover plan, the sequence and extension checks, and the rollback path. Logical replication works between different PostgreSQL major versions, which is what makes a low-downtime move possible, but it has to be configured and monitored carefully. Many teams use a short external review or a fixed-scope implementation for the cutover while keeping day-two operations in-house. DeployOpen plans, implements, hardens and documents self-hosted platforms in your own infrastructure, so you can choose how much of the work to hand over.
How long does a cutover take in general terms?
Cutover length is driven by how far behind the replica is when you switch, how quickly application connection strings can change, and how well the switch was rehearsed. Logical replication between PostgreSQL major versions supports major upgrades with only several seconds of downtime according to the PostgreSQL documentation, but that figure assumes the subscriber is already in sync and the application can reconnect cleanly. Plan for a rehearsal in a non-production environment, a freeze window for schema changes, and a documented rollback. Ask your provider to state the cutover steps and the checks at each step rather than a single number.
What skills does the team need to operate CloudNativePG?
The operating team needs working knowledge of PostgreSQL (replication, vacuum, roles, backups and point-in-time recovery), Kubernetes (storage, scheduling, RBAC, upgrades) and the CloudNativePG operator itself. Kubernetes has its own cadence: the project maintains the three most recent minor releases, and 1.37, 1.36 and 1.35 were the supported lines as of September 2026 according to kubernetes.io. Each Kubernetes upgrade must follow the version skew policy, with the API server first and kubelets afterward. Staff who manage etcd, control plane upgrades and secrets encryption also need to be on call for the cluster layer under the database.
How do we test failover and backup restore on CloudNativePG?
Test both on a schedule, not only at go-live. For failover, deliberately stop the primary in a staging cluster, confirm the operator promotes a replica, check that application connections recover, and record the time to recover and any lost transactions under your synchronous replication settings. For backups, restore to a separate namespace at a point in time, run row counts and application smoke tests, and keep the results as evidence. CloudNativePG supports object storage backups through the Barman Cloud plugin, volume snapshots and WAL archiving with point-in-time recovery, so confirm which combination you use and that WAL archives are monitored. Ask your provider for the test scripts and the written results.
Do the extensions we use on RDS work on CloudNativePG?
Check each extension against the image you will run, because RDS offers a curated list and CloudNativePG runs the extensions packaged in the container image you build or select. Extensions that are common in the PostgreSQL ecosystem can usually be added to a custom image, but each one needs its own version match, its own load test and a decision on who maintains the image. Extensions that depend on managed-service features, such as RDS-specific parameters, may need code or configuration changes. Build an inventory of every extension, role and parameter group from RDS, mark each as supported, replaced or unsupported, and confirm the results in a staging cluster before committing to the move.
What drives the cost of CloudNativePG up or down?
The main cost drivers are the Kubernetes nodes and storage that the cluster needs, the backup storage and its retention, the monitoring and logging stack, the people who run the platform, and the upgrade effort. Costs that are one-time include the migration, testing and hardening. Costs that recur include nodes, storage, backup retention, monitoring and staff time for patches. RDS charges for Extended Support on old major versions per vCPU-hour, while a self-hosted cluster lets you choose when to upgrade PostgreSQL, which PostgreSQL support windows make visible: PostgreSQL 14 is supported until November 12, 2026 and PostgreSQL 18 until November 14, 2030. Ask any quote to itemize each component and state who pays for each.
How DeployOpen helps evaluate, implement or migrate
DeployOpen plans and implements self-hosted open-source platforms inside the client's own cloud accounts, data centers or air-gapped networks. For Amazon RDS for PostgreSQL vs CloudNativePG on Kubernetes, the work starts with a written view of which RDS features your workloads depend on and what a Kubernetes-hosted PostgreSQL cluster would need to match them.
How we scope
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- The written scope lists which RDS features you use, such as Multi-AZ, automated backups, extensions and parameter groups, and how each maps to CloudNativePG.
- The scope states which Kubernetes cluster, storage class, object storage target and identity setup will host the databases.
How we build
- We deploy CloudNativePG clusters with failover, synchronous replication and PgBouncer pooling configured to your recovery targets.
- We configure backups to object storage with WAL archiving and point-in-time recovery, then test a restore before go-live.
- We set up monitoring, access control, audit logging and encryption of Kubernetes Secrets so your security and compliance teams can review them.
How we hand over
- You receive architecture notes, runbooks for failover, backup restore and major version upgrades, and the configuration as code.
- Handover includes a documented test of failover and restore, with the results recorded for your change and audit files.
- Your operators are trained on day-two tasks, such as minor updates, Kubernetes version skew and etcd backup procedures.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
- Retainers can cover CloudNativePG minor line updates, PostgreSQL major version planning and Kubernetes upgrade coordination.
- Ask any provider to confirm which Kubernetes distribution, support window and etcd topology they will run before signing.

