Amazon RDS Extended Support charges: when upgrading or self-hosting makes sense
If your RDS bill now includes Extended Support on an old PostgreSQL major version, you have two real paths: upgrade the instance to a supported major version on RDS, or run a supported PostgreSQL release yourself on servers or Kubernetes where you control the upgrade calendar. Both can end the Extended Support line item, and the right choice depends on how much you want to own the database after the move. RDS bills Extended Support per vCPU-hour for major versions past standard support, and the charge for PostgreSQL 12 doubles from March 1, 2027. Check the date on your own instances and the vCPU count they bill against before that point, since the cost grows with instance size.
PostgreSQL releases each major version with five years of support, and the community currently supports versions 14 through 18. Version 14 is supported until November 12, 2026, so an instance on 14 will reach the end of community support within months. Versions 15, 16, 17 and 18 run to November 11, 2027, November 9, 2028, November 8, 2029 and November 14, 2030, respectively. Confirm the exact engine version on each RDS instance and each read replica, because a replica on an older major version can keep generating Extended Support charges even after the primary is upgraded. The PostgreSQL versioning policy is the reference for these dates.
The short answer is this: upgrading on RDS keeps the managed operations model and its paid support, while self-hosting moves the upgrade schedule, the patching and the high availability design to your team. An RDS major upgrade is the lower-effort path if your workloads and extensions are already known to work on the target version. Self-hosting makes sense when you need control over the timing of each upgrade, want to avoid per-vCPU charges on old versions, or have a platform team that can run failover and backups. Ask your team to test the target version against your extensions, your application driver versions and your recovery procedure before choosing either option.
What the upgrade deadline requires from your database estate
Whichever route you take, the same preparation applies: a supported major version, a tested upgrade method, and proof that your extensions and applications behave on the target version. The cards below set out what to decide and check first, and each one should be confirmed in your own environment before a date is committed.
Target a supported major version
Extended Support charges start only once a major version passes its standard support window, so the target matters. The supported versions are 14 through 18, with 14 ending November 12, 2026. Choose the destination based on how long it stays supported, not only on the version you are running today. Confirm which major version each database instance runs and which application teams own it, because the upgrade calendar is set per instance.
PostgreSQL versioning policyPick a tested upgrade method
PostgreSQL offers three routes: dump and restore with pg_dumpall, in-place upgrade with pg_upgrade, or logical replication to a new major version. Dump and restore is the simplest but takes longest on large databases. Logical replication works across major versions and can cut downtime to several seconds, but it needs replication setup and sequence handling. Rehearse the chosen method on a copy of production and record the measured downtime.
- Logical replication downtime
- Several seconds
Plan for planner statistics
On PostgreSQL 18, pg_upgrade retains planner statistics across major upgrades, so query plans are less likely to change suddenly after cutover. Earlier routes may need an ANALYZE run on the new cluster before traffic arrives. Ask whether your team relies on statistics-driven plans for critical queries, and capture baseline query timings before and after the upgrade so any regression is visible quickly.
Test extensions and applications
Extensions are the most common reason a major upgrade stalls. Inventory every extension in each database, confirm that a build exists for the target major version, and check that your drivers, ORMs and connection poolers work with it. PostgreSQL 18 also changed authentication defaults, deprecating MD5 password authentication in favor of SCRAM, so confirm that every client connects correctly. Record the results in a compatibility matrix that the application owners sign off.
Confirm authentication and access after upgrade
A new cluster may need its client authentication rules rewritten, and PostgreSQL supports several methods, including password, certificate, LDAP, GSSAPI and OAuth 2.0. Review the host-based access file on the target before cutover, confirm that roles and grants carry over, and test that service accounts and monitoring tools still authenticate. Note who owns each credential, since moving off a managed service often changes how secrets are issued.
Authentication methodsWrite and rehearse the rollback plan
A rollback plan defines how you return to the previous version if the upgraded database fails under production load. With logical replication, the old cluster can stay in sync until cutover, which keeps a fallback open. With in-place upgrades, a rollback usually means restoring from backup, so confirm that point-in-time recovery works and that restores are timed. Agree on the decision point, the owner and the time limit in writing before the change window opens.
Continuous archiving and PITRUpgrade on RDS or self-host PostgreSQL: how each option meets the deadline
This table compares three ways to stay on a supported PostgreSQL major version: upgrading within RDS, self-hosting with your own upgrade calendar, and self-hosting with an operator that handles failover. Read each row against your own Extended Support exposure, your staffing and your access needs. The main takeaway is that self-hosting removes the per-vCPU Extended Support charge and gives you control of timing, but it moves failover, backups and upgrades onto your team or your operator.
| Option | How it handles the Extended Support deadline | What the team controls | Trade-offs |
|---|---|---|---|
| Upgrade on RDS | Move the instance to a supported major version before Extended Support billing applies to the old one | Timing within the RDS maintenance and change windows, not the PostgreSQL version policy itself | Extended Support ends only when the major version is upgraded; the upgrade still needs testing of extensions and application behavior |
| Self-host on EC2 or your own servers | Choose a supported major version such as 17 or 18 and upgrade on your own calendar, with no RDS Extended Support billing | Major version, minor release cadence, OS, extensions, superuser access and the upgrade method (pg_upgrade or logical replication) | The team owns patching, backups, monitoring and failover; PostgreSQL does not detect primary failure, so external tools are required |
| Self-host with Patroni or CloudNativePG | Same upgrade control as self-hosting, plus an operator that manages standby promotion and rolling replacement | Failover policy, replica count, synchronous or asynchronous replication and backup targets | Operator and Kubernetes skills are required; failover behavior must be tested, and the team must confirm the operator's upgrade procedure for its chosen version |
| PostgreSQL License cost | The PostgreSQL License permits self-hosting without a license fee, so the remaining costs are infrastructure and people | Whether to pay for support or hardware, and which vendor or community support to use | Infrastructure and administration hours recur every month; confirm the expected effort in your own environment before comparing with RDS |
| Superuser and extension access | Not affected by Extended Support, but it limits how much the upgrade path can be customized | On RDS, superuser and some extension access are limited; on self-hosted PostgreSQL you control both | Confirm that every extension you use is available and supported on the target major version before choosing the path |
| Major upgrade method | pg_upgrade, pg_dumpall with restore, or logical replication can all move to a supported major version | Downtime window and rollback plan; logical replication works between major versions with short downtime | Test sequences, large objects and replica setup in a rehearsal; verify each step against the PostgreSQL upgrading documentation |
| Planner statistics after upgrade | PostgreSQL 18 pg_upgrade retains planner statistics across major upgrades | Whether to run the upgrade on a clone first and how to validate query plans | Confirm the target version and upgrade method you plan to use; statistic retention applies to pg_upgrade on that release |
| Failover and high availability | Not provided by PostgreSQL alone; hot standbys serve read queries and support synchronous or asynchronous replication | Choice of failover tool, fencing approach and tested runbook | Multi-AZ on RDS is managed for you; self-hosting requires that your team or operator tests failover before an assessor asks |
How to move off Extended Support without an outage
This sequence takes a PostgreSQL fleet off an RDS major version that has entered Extended Support and onto a supported release, with the upgrade method, standbys, backups and connection cutover each checked before the next step starts.
Inventory versions and Extended Support exposure
Your database owner or platform team lists every RDS PostgreSQL instance and cluster with its current major version, its Extended Support status and the vCPU count that drives the charge. Record the extensions in use, the authentication methods that clients rely on, the replicas, and the applications that connect directly. Done when you have one table covering each instance, its version, its billed vCPUs and its dependencies, and the owners have signed off on it.
Pick the target supported version
Choose a target from the supported list in the PostgreSQL versioning policy: 18, 17, 16, 15 or 14, each with its published end-of-support date. Weigh the end-of-support date against your upgrade calendar, since a version that ends sooner means another upgrade sooner. Done when the target version and its end date are recorded in the change plan and approved by the database owner.
Test extensions and authentication on the target
Install the target version in a staging environment and load each extension your application uses, confirming that it exists for that version and that its behavior matches production. If you move to PostgreSQL 18, test SCRAM password authentication, because MD5 password authentication is deprecated there, and confirm that every client driver supports SCRAM. Review the authentication methods in the client authentication docs if you plan to add certificate, LDAP or OAuth. Done when a test suite passes against staging and each client connects with the planned method.
Choose pg_upgrade or logical replication
Use pg_upgrade or pg_dumpall with restore when a maintenance window is acceptable and the data set restores in time, and choose logical replication when the cutover must be short. Logical replication between major versions can bring downtime down to several seconds, but it requires publications, sequence handling and monitoring of replication lag. Confirm the choice against the upgrading docs and rehearse the full sequence on a copy of production. Done when a rehearsal finishes with a verified row count and checksum comparison on the critical tables.
Configure standbys and external failover tooling
Build the new primary with hot standbys, choosing synchronous replication where a commit must wait for a standby and asynchronous replication where some data loss on failover is acceptable. PostgreSQL does not detect a failed primary or promote a standby on its own, so deploy an external tool such as Patroni or CloudNativePG and test a forced failover. Confirm that the failover tool and its fencing rules were tested. Done when a controlled failover completes and clients reconnect to the new primary.
Set up continuous archiving and point-in-time recovery
Configure WAL archiving to storage outside the primary host, and schedule base backups. Confirm that point-in-time recovery works by restoring a copy to a chosen timestamp in an isolated environment and checking the data. Record the recovery procedure, who runs it and where the archives are kept. Done when a timed restore to a specific point succeeds and the result is written into the runbook.
Cut over connections through PgBouncer
Place PgBouncer in front of the new primary so applications keep a stable endpoint, then switch the endpoint during the planned window or at the end of logical replication. Watch connection counts, error rates and replication lag while you move traffic, and keep the old RDS instance available as a fallback until the new environment has run cleanly. Done when all application traffic reaches the new primary, the RDS instance is stopped or retained as agreed, and the monitoring baseline is recorded.
Apply minor releases by replacing executables
After the move, plan minor updates separately from major upgrades. Minor PostgreSQL releases never change the internal storage format, so the change is to replace the executables and restart the server. Schedule them within each release line's support window and record the version in your inventory. Done when every node reports the same minor version and the change record shows the restart.
Where the upgrade and cutover path crosses your trust boundary
The path starts on an RDS instance still running an older major version, outside your network boundary. Logical replication publishes changes to a self-hosted PostgreSQL server on a supported major version inside your own network, and logical replication between major versions allows a cutover with only several seconds of downtime. pg_upgrade is the other route when a longer maintenance window is acceptable. The new primary feeds a hot standby that serves read-only queries, and failover tooling must be added separately because PostgreSQL does not detect a failed primary by itself. Application traffic reaches the database through PgBouncer. Confirm that every extension your application uses is available on the self-hosted server before cutover.
Upgrade and cutover path, with your network as the trust boundary.
Which path fits your team: RDS upgrade, self-hosted VMs or Kubernetes
If no one on the team has run PostgreSQL in production, staying on RDS and upgrading to a supported major version is usually the lower-risk choice in the short term. RDS handles the engine patching, automated backups and Multi-AZ failover mechanics, and the charges for Extended Support are the price of keeping the calendar in AWS's hands. Self-hosting shifts all of that work to your staff, and PostgreSQL itself does not detect a failed primary or promote a standby. Automatic failover needs an external tool, and that tool needs someone who understands it.
- Upgrade calendar: PostgreSQL 14 is supported to November 12, 2026, so any RDS instance on an older major version is already on a clock you must plan around.
- Failover: Choosing and testing Patroni or CloudNativePG is a skill gap, not a configuration task, so budget for outside help or training before go-live.
- Backups: Point-in-time recovery needs archiving configured and restores tested on a schedule, which RDS does for you today.
- On-call: Someone must be reachable for a failed node at night, and a single administrator leaving can leave the database unowned.
- Recurring cost: Managed support is paid monthly through the bill, while self-hosting moves the cost into salaries, retainers or consultant fees.
Before committing, ask your engineers who would own the database after cutover and whether they have restored a backup in the last quarter.
Teams that already run Linux servers, patching, monitoring and storage can usually operate PostgreSQL on virtual machines or bare metal with a clear division of labor. The database layer adds replication setup, the major upgrade procedure and backup verification, which are learnable but must be scheduled. Your team controls the upgrade calendar, so an upgrade can follow your change windows instead of an RDS deadline. Minor releases do not change the storage format, so they are replacing executables and restarting, while major upgrades use pg_upgrade, dump and restore, or logical replication.
- Upgrade calendar: Plan one major upgrade per supported version cycle, using logical replication where the few seconds of cutover downtime matter.
- Failover: Pick an external failover tool, run synchronous or asynchronous standbys deliberately, and rehearse promotion.
- Backups: Configure continuous archiving and test point-in-time recovery, not only nightly dumps.
- Connection handling: Plan a connection pooler such as PgBouncer and a load balancer so failover does not strand applications.
- Security: Move password authentication to SCRAM and review the authentication methods your clients support.
Before committing, confirm with your administrators that they can own the replication and recovery runbooks, and that monitoring alerts on replication lag and backup failures.
Platform teams already running Kubernetes can host PostgreSQL through an operator, which packages replication, failover and backups as declarative resources. The trade-off is that the database now depends on your cluster's storage, node lifecycle and observability, so the operator is only as dependable as the platform beneath it. Operators such as CloudNativePG manage failover and push backups to object storage, but the team still chooses storage classes, sizing, upgrade windows and restore drills.
- Upgrade calendar: Declarative upgrades still need a tested path from your current major version, and the operator's documentation should define it.
- Failover: Confirm how the operator handles node drains and storage failures in your cluster before relying on automatic promotion.
- Backups: Verify that backups reach object storage in a separate account or region, and that restores run on a schedule.
- Storage and monitoring: Persistent volumes, I/O performance and database metrics need dashboards and alerts that the platform team owns.
- Skills: Kubernetes engineers may still need PostgreSQL-specific training for tuning, vacuum behavior and replication.
Before committing, ask your platform engineers whether the cluster's storage and node maintenance policies fit a stateful database, and whether the team has a documented restore procedure.
Evidence to keep for the upgrade and the new hosting
Whichever path you take, the upgrade on RDS or the move to self-hosted PostgreSQL, the same handful of records will show an auditor or internal reviewer what changed, why, and whether the database still behaves as intended. Keep them with the change ticket so they can be read without asking the engineers who ran the work. DeployOpen prepares these artifacts for review, but independent auditors issue any attestations.
Version inventory
Record every PostgreSQL instance, its current major and minor version, its end-of-support date and its owner, before and after the change. Include RDS instances, self-hosted clusters, standbys and any restored copies used for testing. Ask whether any instance is still on a version past its supported window, since an unlisted instance is the one most likely to be missed at renewal time. Refresh the inventory on each minor release cycle.
- Oldest supported major
- 14
Supported-version decision record
Write a short decision record that states the target major version, the alternatives considered (staying on RDS with Extended Support, upgrading on RDS, self-hosting), the reason for the choice and the named approver. Include the support end date for the target version from the PostgreSQL versioning policy. Reviewers use this document to judge whether the cost and risk trade-off was deliberate rather than defaulted into.
Upgrade and replication test logs
Keep the output from at least one rehearsal of the chosen method, whether pg_upgrade or logical replication, run against a copy of production data. Capture start and end times, the row count and checksum comparisons, extension versions, and any errors and their fixes. Logs from the rehearsal show whether the cutover window you commit to is based on measured behavior rather than an estimate.
Authentication configuration showing SCRAM
Export the effective pg_hba.conf rules and the password_encryption setting from each cluster, and show that password logins use SCRAM rather than MD5. Where the new host uses certificates, LDAP or OAuth, record those settings and the roles they map to. Reviewers will check that no legacy MD5 entries survived the migration, since they were carried across from the old instance in many restores.
Backup and point-in-time recovery tests
Keep dated restore tests that show a backup can be restored and that point-in-time recovery reaches a chosen timestamp on the new hosting. Record the archive location, the retention period, who can delete archived WAL and the measured restore duration. A backup that has never been restored is not evidence of recoverability, so ask for a completed restore into a separate environment before the RDS instance is retired.
Continuous archiving and point-in-time recoveryAccess and audit logging
Document who holds superuser and administrative access on the new hosting, how that access is granted and revoked, and where connection and DDL logs are sent. Include the retention setting for those logs and a sample entry from a test login. On RDS, the equivalent controls sit in IAM and CloudTrail, so the review should show what replaces each one and who reads the logs.
Questions teams ask before upgrading RDS or self-hosting PostgreSQL
What drives Amazon RDS Extended Support charges, and how do I estimate them?
Extended Support is billed per vCPU-hour for each major version that has passed standard support, so the vCPU count of every instance running that version is the main input. The bill then depends on how many hours those instances run, how many instances or replicas use the old version, and whether any non-production copies were forgotten. Multi-AZ standbys and read replicas running the same old version can count as well, so inventory every instance and replica before estimating. For PostgreSQL 12, the charge doubles from March 1, 2027, which makes the monthly cost of waiting rise on that date. Confirm the current per-vCPU rate in the AWS pricing documentation for your Region, then request a quote for your exact inventory before deciding.
How long does a PostgreSQL major upgrade take, and how much downtime should I expect?
The answer depends on the method and the size of the database. PostgreSQL offers three paths: a dump and restore with pg_dumpall, an in-place upgrade with pg_upgrade, and logical replication to a new major version. Dump and restore is the simplest but scales with data volume, so it suits small databases with a long window. Logical replication can cut the outage to several seconds at cutover, provided the team handles sequences, large objects and schema changes first. On PostgreSQL 18, pg_upgrade keeps planner statistics across major upgrades and offers parallel jobs and a --swap option, which shortens the window. Run a rehearsal on a copy of production to measure your own timing, since no duration can be promised from general figures.
Can my team upgrade PostgreSQL without an outside partner?
Yes, many teams do, because the upgrade tools are part of the PostgreSQL project and the official documentation covers each method. The work that tends to need outside help is the surrounding change: testing application compatibility on the new version, rehearsing the cutover, validating extensions, and producing change records for an auditor. A team with a database administrator who has run a major upgrade before can plan this in-house. A team that has not will spend more time on the first attempt, and the risk sits in the cutover. If you want an outside party, DeployOpen works on a fixed scope agreed in writing before work starts, covering the upgrade plan, rehearsal, cutover support and evidence. Request a quote from that written scope.
What staff and skills does a self-hosted PostgreSQL environment need?
Self-hosting moves several duties from the cloud provider to your team: patching and minor release updates, major upgrades, backup and restore testing, monitoring, capacity planning, and access control. At minimum you need someone who can administer PostgreSQL (roles, extensions, vacuum, replication), someone who runs the infrastructure it sits on, and an on-call route for outages. Minor releases do not change the storage format, so applying them means replacing executables and restarting, but someone still has to schedule and verify them. PostgreSQL releases a major version about once a year and supports each for 5 years, so plan for a recurring upgrade cycle. Ask your team which of these duties already have an owner before counting the cost.
How much extra work do failover and backups add when I self-host?
Failover and backups are the largest items RDS handles for you today, so they are the main source of extra work. PostgreSQL supports hot standby servers and both synchronous and asynchronous replication, but it does not detect a primary failure or promote a standby on its own, so you need an external tool such as Patroni or CloudNativePG, and you need to test failover regularly. Backups require base backups and continuous WAL archiving to enable point-in-time recovery, with storage you pay for and a restore test you run on a schedule. Effort rises with the number of clusters, the recovery time and point objectives your business sets, and the number of regions. Estimate it by listing each cluster and its required recovery targets, then ask any vendor or partner to quote those items separately.
What does a fixed-scope PostgreSQL engagement need from my organization?
A fixed-scope engagement is agreed in writing before work starts, so the scope document should name the databases, versions, extensions, Regions, applications and environments included. You also need to provide access to the source database, a non-production environment for rehearsal, a named owner for application testing, and a maintenance window approved by the business. Decide early who signs off the cutover and what evidence the compliance team needs, such as change records, test results and backup restore logs. DeployOpen deploys and hardens self-hosted platforms inside your own cloud accounts, data centers or air-gapped networks, and prepares controls and evidence for compliance assessments, but it does not issue audit reports or certifications. Independent auditors handle those. Ask for a quote once the scope and access requirements are written down.
Is upgrading on RDS or self-hosting PostgreSQL the better choice for my licensing situation?
The licensing question is simpler for PostgreSQL than for many other databases. PostgreSQL is released under the PostgreSQL License, a liberal open source license similar to the BSD or MIT licenses, so the software itself carries no per-core or per-instance fee. Your cost is the infrastructure, the people, and any support contract you choose. RDS bundles the infrastructure and the managed operations into its hourly rate and adds Extended Support charges for old versions. Staying on RDS keeps the operational work with AWS but keeps your upgrade timing tied to its calendar. Self-hosting gives you control of the upgrade calendar but moves the operational work to you. Compare both options using your own inventory, staffing and recovery requirements.
How DeployOpen plans a PostgreSQL upgrade or self-hosted move
DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For Amazon RDS Extended Support charges, that means scoping the upgrade or move in writing, building it in your environment, and handing over runbooks and evidence your teams can keep using.
How we scope
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- The written scope lists which RDS instances, major versions and extensions are included in the upgrade or self-hosting plan.
- Scope also covers application connections, rollback criteria and which data export path fits your downtime tolerance.
How we build
- Build either an in-place major upgrade on RDS or a self-hosted PostgreSQL target in your infrastructure, with high availability and backups configured.
- Rehearse the cutover on a copy of your data, testing extensions, roles, authentication and application queries against the target version.
- Set up SSO-linked access, audit logging and backup restore tests so your security and compliance teams can review the setup.
How we hand over
- Deliver architecture notes, configuration records, runbooks for failover, patching and restore, and a record of the test results.
- Walk your database and platform staff through operations so they can run the upgrade calendar after handover.
- Document the decisions behind each design choice so auditors and internal reviewers can trace them later.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- A retainer can cover minor release patching, which PostgreSQL ships at least once every three months, and planning for each later major version.
- Ask for the retainer scope and response expectations in writing alongside the original fixed-scope quote.

