Infrastructure & continuity
Accept the application contract before moving writes to PostgreSQL 19
A PostgreSQL 19 cutover is ready when the application’s important behaviours are accepted on the target, the chosen migration path is understood and someone can decide what happens to writes if the change must stop. Starting the new server or completing a migration tool is only part of that evidence.
The PostgreSQL project released version 19 on 19 November 2026. That public project release does not establish that a particular managed service, account or Swiss hosting region already offers it. Confirm the actual target before committing to a date. (PostgreSQL Global Development Group)
Choose a major-upgrade path, not a maintenance procedure
The release notes require a logical dump/restore, pg_upgrade or logical replication to migrate data from an earlier release. Major versions can change storage and application behaviour. The upgrade guide recommends reviewing every intervening major version’s migration notes, even when the data moves directly to 19. (PostgreSQL Global Development Group, PostgreSQL Global Development Group)
Start with one named application and its actual source and target. Record server versions, package source, extensions, client libraries, administration tools and the permitted staging data. For an agency, include the client’s acceptance owner and the person controlling the database change. A generic “PostgreSQL supported” statement does not establish support for this combination.
The upgrade guide describes logical export/import, pg_upgrade and cross-major logical replication as different migration approaches. It recommends concurrent old and new installations for application testing. It also distinguishes logical backup tools from copying a filesystem backup into an incompatible major-version data directory. (PostgreSQL Global Development Group)
Select a method after reviewing its own prerequisites and reversal constraints. The proposed questions below are an acceptance aid, not a complete procedure or a ranking by speed. No migration method was executed for this guide.
| Candidate path | Question to settle before the window | Evidence the team must retain |
|---|---|---|
| Logical export and import | Which export tool and consistent data boundary will be used? | Tool identity, accepted import and the writes outside that boundary |
| pg_upgrade | Which cluster and extension constraints apply to this exact mode? | Documented prerequisites and a tested recovery decision for the chosen mode |
| Logical replication | When is the target accepted as sufficiently caught up to receive writes? | Replication scope, reconciliation and a single controlled write cutover |
Turn the migration notes into cases the application owner can accept
PostgreSQL 19 forces standard_conforming_strings on; older dumps created with it off may not load correctly. It removes RADIUS support. A query-backed json_array call with no rows now returns an empty JSON array instead of NULL. These are compatibility decisions, not merely new feature names. (PostgreSQL Global Development Group)
Imagine a fictional order portal. A reconciliation screen asks for pending order lines. Previously its empty query result entered a “no result available” branch; the team wants a genuinely empty order to show “no lines pending”. This is an invented application rule. The database change does not tell the team which message its users should receive.
Prepare a permitted fixture with no lines, one line and an unavailable lookup. Ask the reviewer to distinguish all three outcomes. If the adapter treats an empty array as a successful order while another component expects NULL, a technically valid response can still change the business journey. Keep the actual query, response interpretation and expected screen state together.
- Empty result: specify the intended business state and compare it with the target response; do not equate “no lines” with “lookup failed”.
- Historic import: identify the dump producer and relevant string settings, then review the accepted import rather than editing dump text blindly.
- Administration: establish the authorised access path on the target before retiring the source access method.
- Operations tooling: select the dashboards, maintenance jobs and extension calls that the team actually needs during the change.
The official migration section also changes monitoring names and locale-sensitive text processing. For affected locale providers and indexes, it describes specific reindexing and stored-value follow-up. Match those notes to actual usage; do not turn a conditional recommendation into a universal rebuild instruction. (PostgreSQL Global Development Group)
Make the first accepted write a named boundary
The migration window should identify who may stop writes, move connection routing and reopen the application. Include background jobs and integrations that can write without a person using the screen. A successful interactive login leaves those paths unanswered. Decide which evidence must exist before each writer is allowed onto the target.
In the fictional portal, suppose an order arrives after the target opens. Returning traffic to the old database would not, by itself, establish where that order now exists. The recovery plan needs a reconciliation decision for work accepted after cutover. Keep the source available under the chosen method’s documented rules, but do not describe an old copy as a complete rollback once the data histories have diverged.
Proposed cutover record — fictional, not executed
Before opening writes: source/target identities and application cases accepted
Opening decision: named owner, writer routing and observed boundary
After opening: accepted work tracked for later reconciliation
Stop decision: named authority and permitted recovery path
Closure: unresolved differences and accepted data/application state retainedA useful stop condition is concrete: an unreviewed extension, a missing administrative path, a business case producing the wrong state or an unexplained writer still using the source. Define those conditions before the window. Investigating a failure is easier when routing and ownership have not changed several times without a record.
Keep recovery evidence and the budget in the same decision
The PostgreSQL restore rehearsal guide can help define recovery evidence. It answers a narrower question than this cutover: recovering an accepted copy does not demonstrate that a major-version application transition is accepted. The security-update dependency set and a client-driver update also remain separate changes.
The PostgreSQL Licence permits use, copying, modification and distribution without a software licence fee under its notice conditions, and disclaims warranty. It does not supply extension rights, a managed-service contract or support entitlement. (PostgreSQL Global Development Group)
Budget duplicate capacity, supplier coordination, application review, the migration window and recovery work for the selected method. No downtime or saving is measured here. Begin with the empty-result case and the actual writer inventory: together they make the release decision more specific than a database version banner. No SQL, cluster change, migration or restore was run for this article.
Sources
- PostgreSQL: PostgreSQL 19 Press Kit — PostgreSQL Global Development Group · 2026-11-19
- PostgreSQL: Documentation: 19: E.1. Release 19 — PostgreSQL Global Development Group · 2026-11-19
- PostgreSQL: Documentation: 19: 18.6. Upgrading a PostgreSQL Cluster — PostgreSQL Global Development Group
- PostgreSQL: License — PostgreSQL Global Development Group