Repository navigation
Update Postgres to 15.20 - #135
Merged
Merged
Conversation
RDS released 15.20 on 2026-11-26. Standard support ends in September 2027 for 15.18 and in March 2028 for 15.20. The CHANGELOG link carries a placeholder until the pull request has a number. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The RDS upgrade immediately causes downtime and cannot be downgraded in place, requiring live dev-stack validation and operator confirmation of recovery readiness beyond mocked CI plans.
No open issues 🎉
What changed in this PR
Updates the Terraform database module from PostgreSQL 15.18 to 15.20 as routine maintenance for the registry database.
Changes:
- Pins the RDS PostgreSQL engine version to 15.20.
- Adds a release notice explaining that the upgrade runs during
terraform applyand interrupts registry database access while the instance restarts.
| File | Description |
|---|---|
modules/db/main.tf |
Updates the PostgreSQL engine pin to 15.20. |
CHANGELOG.md |
Records the version update and warns about restart downtime. |
Review effort: Balanced
[Medium impact] The PR appears safe to merge, with the database restart explicitly documented. Reviews (1) · Last reviewed commit: "Add PR number to CHANGELOG" · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The need
The module runs the registry's database on PostgreSQL 15.18. RDS released 15.20 on 2026-11-26, and its PostgreSQL release calendar ends standard support for 15.18 in September 2027 and for 15.20 in March 2028. 15.19 and 15.20 also carry PostgreSQL's August and November 2026 security fixes. This is routine maintenance, not a hotfix.
What changed
The module creates the database on PostgreSQL 15.20, and upgrades an existing one in place on the first
terraform applyafter its root movesrefto a release carrying this change. The module setsapply_immediately = trueandauto_minor_version_upgrade = false, so that apply upgrades the instance at once rather than in the maintenance window, and the restart cuts the registry off from its database until it finishes. The CHANGELOG's release notice says so.Verification
Nothing has been applied to a live database yet, so the upgrade itself is unverified until a consumer moves its
refto a release that contains it.RDS lists 15.20 as
availablein us-east-1, us-west-2, eu-central-1 and us-gov-west-1, and as a valid upgrade target from 15.18 (aws rds describe-db-engine-versions, 2026-12-01; other regions unchecked). To check another region:aws rds describe-db-engine-versions --engine postgres --engine-version 15.20 --region <region>.CI's own commands pass locally at Terraform 1.10.0:
terraform fmt -check -recursive -diff,terraform validatein each module,terraform testinmodules/vpcandmodules/quilt/tests/smoke, and markdownlint. The smoke test plans the database against a mocked provider, so it does not check the engine version against RDS.Links
No issue tracks this. A paired change to the CloudFormation template moves the database that template creates to 15.20.
Risk and rollback
The restart. During the apply that upgrades the instance, the registry cannot reach its database until the restart finishes. No duration was measured. An operator picks the moment by picking when to apply.
Post-upgrade steps. The 15.19 and 15.20 release notes recommend REINDEX of btree indexes on
bpcharcolumns, GIN indexes,pg_trgmGiST indexes and indexes made withbtree_gistorltree, none of which the registry's schema has. 15.19's pgcrypto change touches only pgcrypto users, and the registry's only extension iscitext. Its logical-decoding change touches only an instance with logical decoding turned on through therds.logical_replicationparameter, and the module leaves the instance on RDS's default parameter group. 15.20's notes also recommend REINDEX of a TOAST-table index that reports "missing chunk number" errors after a REINDEX CONCURRENTLY, a repair for that symptom rather than a step to run on upgrade.Rollback. Before any consumer applies it, reverting this pull request is enough. After an apply, reverting the pin does not bring the database back: RDS cannot revert an upgraded instance to its earlier engine version, and returning to 15.18 means restoring a snapshot taken before the upgrade into a new database (RDS for PostgreSQL upgrade considerations).
The optionality note
The database stays on PostgreSQL 15, so a later major-version upgrade is as open as before. Once a database is upgraded, an in-place return to 15.18 is closed.
TODO
🤖 Generated with Claude Code