How to Patch PostgreSQL After the November 2026 Security Release
PostgreSQL's November 12 release fixes 52 vulnerabilities. Here is the patch order, the reindex list and the backup checks that follow.
On this page 7 sections
To patch PostgreSQL after the November 12, 2026 release, stop the server, install 18.7, 17.12, 16.16, 15.20 or 14.25, and restart. No dump, reload or pg_upgrade is needed. Then run the follow-up repairs the project lists: reindex affected GIN, pg_trgm and bpchar indexes, and take a new full backup.
This guide is for engineers and database owners who run self-managed PostgreSQL. It covers which build to install, why the security fixes deserve fast action, and the post-update checks that a binary swap does not handle. The official announcement is the source for every version number below.
Backtrace tests developer tools against real codebases, so we read the release notes the way an on-call engineer would. The goal is a short checklist you can run in one maintenance window.
Which PostgreSQL versions have a fixed build in the November 2026 release?
Every supported branch has a fixed minor release dated November 12, 2026. Those builds are 18.7, 17.12, 16.16, 15.20 and 14.25. Anything older on the same branch is affected by the security issues and should be updated.
| Branch | Fixed release | Status |
|---|---|---|
| 18 | 18.7 | Supported |
| 17 | 17.12 | Supported |
| 16 | 16.16 | Supported |
| 15 | 15.20 | Supported |
| 14 | 14.25 | End of life, final release |
Start with an inventory. Run SELECT version(); on every primary, replica and staging server, and record the result in one sheet. Replicas that lag behind the primary are the usual gap.
The project also shipped PostgreSQL 19 release candidate 2 in the same announcement. That candidate is for testing only. A production fleet on branch 16 or 17 should patch within its branch now and plan any major jump separately.
Why does this security release deserve priority over a routine minor update?
This release closes several flaws that can run code on the database host. The most prominent is CVE-2026-6460, a type confusion bug that lets an object creator execute arbitrary code as the operating system user running PostgreSQL. It carries a CVSS 3.1 score of 8.8.
Several other entries share that 8.8 score. CVE-2026-18447, CVE-2026-116304 and CVE-2026-116306 are all listed as arbitrary code execution bugs. The announcement also lists CVE-2026-14661, where dblink and subscriptions can append to arbitrary files, at 8.1.
Look at who holds the CREATE privilege on your databases and schemas. The score assumes a low-privilege account that can create objects. A shared cluster with many application roles has more exposure than a single-tenant one.
The maintenance tools are in scope too. CVE-2026-116314 covers pg_restore running code because it skips validation of non-plain archives, and it is also scored 8.8. Treat any dump file from an untrusted source as hostile until the client tools are patched.
A smaller group of fixes touches row-level controls. CVE-2026-16237 lets INSERT ... ON CONFLICT read or modify rows despite an auto-updatable view's WHERE condition, and CVE-2026-116311 lets DROP OWNED remove restrictive row security policies. If you build multi-tenant isolation on views or row security, add both to your regression tests.
How do you patch PostgreSQL without a dump and reload?
You update the binaries and restart the server. The project states that all update releases are cumulative, so you do not need a dump, a reload or pg_upgrade. Teams that skipped earlier minor releases should read those release notes for extra steps.
Run the update in this order on each environment:
- Update staging first and run your integration suite against it.
- Update replicas one at a time and confirm replication catches up.
- Fail over or schedule a short window for the primary.
- Update the primary, restart, and confirm
SELECT version();shows the fixed build. - Update client tools such as pg_dump, pg_restore and vacuumdb on every host that runs them.
The ordering matters because the client tools carry their own fixes. A patched server with an old pg_restore on a jump box still leaves CVE-2026-116314 open. Package managers often update server and client together, but container images and bastion hosts do not.
The same discipline applies to application runtimes. Our guide to patching Node.js for the November 2026 security releases uses the same staging-first order. For a longer rehearsal, see how to test a Node.js major version upgrade before production, since the checks carry over to database changes.
At Backtrace, our editors recommend writing the rollback plan before the window opens. A minor release can usually be reverted by reinstalling the previous binaries. Planner changes in this release are the reason to keep that option ready.
Which PostgreSQL indexes need a reindex after patching?
Four index cases need attention. Suspected GIN indexes, pg_trgm GiST indexes that use gist_trgm_ops, tables that raised missing chunk number errors, and B-tree indexes on bpchar columns declared without a length all need a rebuild. Other indexes are not named in the announcement.
The announcement says several GIN fixes address corruption that could make queries miss rows or return unrelated rows. Wrong results are harder to spot than errors. A search feature that silently drops matches may take weeks to get reported.
The project gives these examples for the rebuild:
REINDEX INDEX your_index_name;
REINDEX TABLE your_table_name;The second command rebuilds the table's indexes and its TOAST table. Use it if you saw missing chunk number errors. The cause was an earlier REINDEX CONCURRENTLY on a TOAST table that left later index updates unrecorded.
The REINDEX documentation describes the CONCURRENTLY option, which avoids blocking writes. It is slower and cannot run inside a transaction block. For big GIN indexes on a busy table, that tradeoff usually favors the concurrent form. For the TOAST case, follow the announcement and use the plain command.
Columns declared as char(n) are not affected by the bpchar change. Only columns declared as plain bpchar with no length are. A catalog query finds them before you schedule long rebuilds:
SELECT attrelid::regclass, attname
FROM pg_attribute
WHERE atttypid = 'bpchar'::regtype AND atttypmod = -1
AND attnum > 0 AND NOT attisdropped
AND attrelid IN (SELECT oid FROM pg_class WHERE relkind IN ('r','p'));This query is our own helper and not part of the announcement. It lists tables with an unbounded bpchar column. You then check which of those columns sit in a B-tree index and rebuild only those indexes.
What changes for backups, partitioned tables and PostgreSQL 14?
Take a new full backup after you update. The project says several fixes for incremental backups could produce corrupt backups, so a new full backup should become the base for later incrementals. Treat any incremental chain created before the update with caution.
A second backup fix matters for standbys. Exporting and importing snapshots taken on a standby could corrupt both the dump output and the standby's data. The case that exposed it was a parallel pg_dump against a standby, which many teams use to keep load off the primary.
Restore a recent backup into a scratch instance and run a few real queries. A backup you have never restored is only a guess. Our write-up on upgrading Apache Kafka 4.4 and its rollback limits makes the same point about data you cannot easily roll back.
Partitioned tables have their own check. The release disallows NOT NULL NO INHERIT constraints on partitioned tables in all cases. Before this fix, a partition could hold NULL values that it should not. The announcement supplies a query against pg_constraint that lists the affected constraints.
You can drop an unwanted constraint with ALTER TABLE ... DROP CONSTRAINT. To keep one, use ALTER TABLE ... ALTER CONSTRAINT ... INHERIT. That command fails if any partition already contains NULLs in the column, which is a useful signal in itself.
PostgreSQL 14 is the last item. The project calls 14.25 the final release of that branch and says it will no longer receive security or bug fixes. Patch to 14.25 now, then put a major-version migration on the roadmap with a date.
How do you verify the PostgreSQL patch worked?
Confirm the running build, then test the paths the release touched. Check SELECT version(); on every node, restore a backup into a scratch instance, and rerun your slowest and most important queries. A matching version string proves the binary swap, not data health.
Watch the logs for the first day. Startup errors, replication lag and new query cancellations on standbys all show up quickly. The release also reworked the planner's join removal code, which the project describes as a significant change for an update release. Compare query plans for your top queries before and after, and flag any that changed shape.
Finally, write down what you changed. A short record with the old version, the new version, the indexes rebuilt and the date of the new full backup saves an hour of guessing during the next incident.
Conclusion
Patching PostgreSQL this month takes two stages. The binary update is quick and low risk. The repairs afterward take longer: reindexing, a fresh full backup and a constraint check on partitioned tables.
Start with the inventory, update staging, then work through replicas and the primary. Finish by restoring a backup into a scratch instance and running your own queries against it. Teams still on PostgreSQL 14 should set a migration date today, because this was the last fix they will get.