PostgreSQL 19 was due November 19: what can break your app
The short answer
PostgreSQL 19 was planned for general availability on November 19, 2026, with a second release candidate on November 12. Most of its incompatibilities are small, but a few reach application code and data. Dumps made by a pg_dump older than 19, from a server with standard_conforming_strings off, will not load into 19. Also, json_array() over no rows returns [] instead of NULL, JIT is off by default, and pg_upgrade refuses some clusters. Check for each before you plan the move.
When does PostgreSQL 19 come out?
The first release candidate came out on October 15, 2026. The release team scheduled a second release candidate for November 12, the same day as the regular update release. That update carried a large number of fixes, and the team chose to include them in 19 before general availability.
PostgreSQL 19 general availability was planned for November 19, 2026, unless an issue was found that needed a delay or another release candidate. When this post was written, the release notes still showed a placeholder for the release date, so check the final notes for any item below that changed.
If you are still on 14, this is not your release yet. Version 14 got its last fixes on November 12. Our post on the PostgreSQL 14 end of life explains why 18 is the safer target this month. This post is for teams already on 17 or 18 who want to know what 19 will ask of them.
Which changes in 19 reach application code?
The PostgreSQL 19 release notes list seventeen incompatibilities. Several cover extension hooks, monitoring views and psql display. These are the ones an application, a migration script or a data copy is most likely to hit:
standard_conforming_stringsis alwaysonin PostgreSQL 19. The server no longer acceptsoff. Backslashes inside an ordinary string literal are plain characters. Code that wants backslash escapes must use escape string syntax, such asE'\n'. Theescape_string_warningsetting is gone.json_array()over a query with no rows returns an empty array. It used to return NULL. Code that tests the result withIS NULL, or wraps it inCOALESCE, will now take the other branch.- JIT is disabled by default. The release notes say the costing that decided when to use it proved unreliable. Sites running many large analytical queries need to turn it back on themselves.
- PostgreSQL 19 raises the
max_locks_per_transactiondefault to 128, up from 64. Lock space is allocated differently, so a value you set by hand must be doubled to keep the capacity it had before. A server tuned to 256 on 18 needs 512 on 19 for the same headroom. - Read-only transactions now stay read-only across postgres_fdw. A
READ ONLYorDEFERRABLEtransaction passes that status to the remote session. A read-only transaction can no longer change rows through a foreign table. COPY FROM ... WHEREcan no longer refer to system columns. The release notes say their values there were not well defined.sync_error_countis renamed tosync_table_error_countinpg_stat_subscription_stats. Dashboards and alerts that read the old column will break.
Will an old dump still restore on 19?
Not always. The release notes warn that dumps made by a pg_dump or pg_dumpall older than 19, on a server with standard_conforming_strings = off, will not load properly into 19. Use the dump tools from 19 itself, or make the dump with the setting on.
This matters for more than the upgrade. Teams often keep old dumps as test fixtures, as the starting point for a support case, or as the seed for a developer database. Some of those will not load into 19. The ones at risk were taken with a pg_dump or pg_dumpall older than 19, from a server with standard_conforming_strings off. Remake them with the 19 tools, or with the setting on. Check the source server first:
SHOW standard_conforming_strings;
If it says on, dumps from that server are not affected by this change.
Which clusters will pg_upgrade refuse?
Two changes stop pg_upgrade outright, and a third needs a dump and restore. Each can be checked on the current server today.
Database, role and tablespace names with carriage returns or line feeds. Version 19 rejects these names, and pg_upgrade will not upgrade a cluster that has one. This query lists them:
SELECT 'role' AS kind, rolname AS name FROM pg_roles WHERE rolname ~ '[\r\n]' UNION ALL SELECT 'database', datname FROM pg_database WHERE datname ~ '[\r\n]' UNION ALL SELECT 'tablespace', spcname FROM pg_tablespace WHERE spcname ~ '[\r\n]';
GiST indexes on inet or cidr that use the btree_gist operator classes. The release notes say these classes are broken because they can leave out rows a query should return. Before 19, when btree_gist is installed, a plain USING gist index on inet or cidr uses the broken class without anyone choosing it. Version 19 makes the core inet_ops class the default for new indexes, but pg_upgrade still refuses a cluster that has the old ones. Run this in each database that has the extension:
SELECT i.indexrelid::regclass AS index_name, o.opcname
FROM pg_index i
JOIN pg_opclass o ON o.oid = ANY (i.indclass)
WHERE o.opcname IN ('gist_inet_ops', 'gist_cidr_ops');Rebuild each index it lists with the core class, inet_ops, before the upgrade. Because the old indexes can miss rows, queries that used them may already have been returning short results.
Databases in the MULE_INTERNAL encoding. Version 19 removes this encoding. The release notes say such databases must be dumped and restored with a different encoding.
What changes for logins?
MD5 passwords were deprecated in 18. In 19, every successful MD5 login produces a WARNING, and so does setting an MD5 password with CREATE ROLE or ALTER ROLE. The md5_password_warnings setting turns this off, but the better fix is moving those roles to SCRAM.
A new setting, password_expiration_warning_threshold, warns at login when a role's password will expire soon. It only applies to roles with a VALID UNTIL date, and the default warning period is seven days. Clients that treat any server warning as a failure should be tested against both warnings.
RADIUS authentication is removed. The release notes say it only worked over UDP, which is unfixably insecure. Any pg_hba.conf line that uses it must change before the upgrade.
How do you test an app against 19 before it ships?
The PostgreSQL 19 release candidate is the right thing to test against now. Testing before general availability means problems can still be reported and fixed before the final release.
- Run the three checks above on production. They are read-only catalog queries. Fix anything they find while you are still on your current version.
- Search the code for the small things. Look for
json_arraywithIS NULLorCOALESCE, string literals that contain backslashes, foreign tables written inside read-only transactions, and dashboards readingsync_error_count. - Load a copy of production onto the release candidate the way you will upgrade. If you will use
pg_upgrade, rehearse with it. If you will dump and restore, use the 19 dump tools. - Replay the queries production really runs and compare. Compare rows, error codes and timings. A test suite with small, clean fixtures will not hold the backslash in an old customer note or the empty
json_array()result that now comes back as[]. - Time your heaviest reports with JIT off and on. Turn
jiton for a test run and compare. Keep the default only if the reports stay fast enough. - Recalculate hand-set lock limits. If you raised
max_locks_per_transaction, double your value for 19.
A copy used for this rehearsal holds real customer data. Keep it inside the same security boundary as production and delete it when the test is done.
Questions people ask
When is PostgreSQL 19 released?
PostgreSQL 19 general availability was planned for November 19, 2026, unless an issue needed a delay. A second release candidate was planned for November 12, 2026.
Can I turn standard_conforming_strings off in PostgreSQL 19?
No. The setting still exists so applications can read it, but it is always on and cannot be set to off. Use escape string syntax, such as E'\n', when you need backslash escapes.
Why are some queries slower after upgrading to PostgreSQL 19?
One likely cause is JIT, which is off by default in 19. Large analytical queries that relied on it may run slower. Turn it on with jit = on and measure your heaviest queries before deciding.
Should I upgrade from PostgreSQL 14 straight to 19?
Not this month. Version 14 lost support on November 12, before 19 was due. Move to 18 now and plan 19 as a separate, later step.
Sources
- PostgreSQL 19 RC 1 Released, PostgreSQL Global Development Group, October 15, 2026
- Release 19 notes, Migration to Version 19, PostgreSQL Global Development Group, October 9, 2026
- Versioning Policy, PostgreSQL Global Development Group, November 10, 2026
- Version and Platform Compatibility: standard_conforming_strings, PostgreSQL Global Development Group, October 15, 2026
- Query Planning: jit, PostgreSQL Global Development Group, October 15, 2026
- Lock Management: max_locks_per_transaction, PostgreSQL Global Development Group, October 15, 2026
- Connections and Authentication: md5_password_warnings and password_expiration_warning_threshold, PostgreSQL Global Development Group, October 15, 2026
- JSON Functions and Operators: json_array, PostgreSQL Global Development Group, October 15, 2026
- btree_gist: GiST operator classes with B-tree behavior, PostgreSQL Global Development Group, October 15, 2026