Which PostgreSQL versions should you install?
| Major version | November 12 release |
|---|---|
| 18 | 18.7 |
| 17 | 17.12 |
| 16 | 16.16 |
| 15 | 15.20 |
| 14 | 14.25 — final release, end of support |
PostgreSQL 19 RC 2 also includes applicable fixes, but it is a release candidate rather than a stable production release.
For minor upgrades within one major release, PostgreSQL says a database dump/restore or pg_upgrade is normally not required: follow the appropriate service or packaging procedure to replace server binaries. Moving to a different major version is a separate migration.
What risks do the 52 security fixes address?
The official advisory lists distinct vulnerabilities with different prerequisites, affected releases and consequences. Some may allow code execution by users who already hold certain privileges; others affect authorization checks, information exposure or administration tools.
- CVE-2026-6460 (CVSS 8.8): type confusion leading to possible code execution, particularly during some
ALTER ... SET DATA TYPEoperations. - CVE-2026-116314 (CVSS 8.8): insufficient validation of certain archive formats in
pg_restore, potentially allowing code execution. - CVE-2026-120154 (CVSS 4.3): in certain conditions,
INSERT ... ON CONFLICTcan read rows despite row-level security policies.
A code-execution CVE is not necessarily exploitable without authentication. Review affected versions, attacker prerequisites and granted roles before prioritizing.
A binary update may not be enough
PostgreSQL reports bugs that may have produced inconsistent indexes or corrupted incremental backups. Some installations require additional checks and remediation:
- GIN indexes: assess whether potentially affected indexes need
REINDEX. pg_trgm: reindex GiST indexes usinggist_trgm_ops.missing chunk numbererrors: follow PostgreSQL’s guidance to reindex the affected table and its TOAST indexes.- Incremental backups: create a fresh full backup after updating, then use it as the base for subsequent incremental backups.
- B-tree indexes on unbounded
bpchar: check the vendor’s reindexing guidance.
Avoid blanket reindexing without assessing impact: operations can be resource-intensive and may require planning to maintain availability.
PostgreSQL 14 has reached end of life
14.25 is the final PostgreSQL 14 release. PostgreSQL 14 will no longer receive security or bug fixes. Production users should install the last applicable minor update and plan a migration to a supported major release, including extension compatibility, backup and restore testing, rollback plans and application validation.
Upgrading 14.x to 14.25 differs from migrating to PostgreSQL 15, 16, 17 or 18, which requires a proper major-version upgrade process.
Operations checklist
- Inventory actual server versions using
SHOW server_version;, including each container, instance and replica. - Verify backups, restore processes and replication before maintenance.
- Apply the fixed release for your major version using your vendor or distribution's procedure.
- Read the release notes for indexes, backups, partitions, extensions and replication relevant to your deployment.
- Validate application queries, availability, affected indexes and backups afterward.
- Prioritize migration plans for production PostgreSQL 14 instances.
Database versions are part of your application’s security posture. TechAtelier Software Watch helps organize version tracking and patch priorities.