Postgres 19 Upgrade from Postgres 15
Postgres 19 was released in November 2026 and once again I am planning production upgrades. This post has a few notes about my own upgrade process and highlights a few exciting new features to explore. This post does not explain how to perform the actual upgrade.
My own process is a bit unusual because I typically go through major version upgrades either annually or every other year at most. I upgraded to Postgres 15 shortly after it was released in 2022 and intentionally skipped Postgres 16 because I knew I would be occupied preparing for a full-day pre-conference session on PostGIS for PASS 2023. I ultimately skipped upgrades to 17 and 18 because... well, I was busy! However, this leaves me with less than a year to upgrade since Postgres 15 will become End of Life in November 2027.
Helpful Tools for Upgrades
An important step for major version upgrades is to understand what
has changed in the configuration layer, found in
the postgresql.conf file.
Our postgresql.conf comparison tool
is helpful for this step of the upgrade process and has been updated
to support Postgres 19, thanks to PikachuEXE's pull request
to add the config for Postgres 19.
Another extremely helpful tool is the Feature Matrix available from Postgres. Features and configuration options largely overlap but just looking at one without the other does not tell the full picture of what changed.
Configuration Growth over time
My 2019 post Prepare for Postgres 12: Configuration Changes showed that the count of configuration options grew by 40% between Postgres 9.2 and Postgres 12 (7 years/releases). Counting configuration options is a halfway decent measure of tracking features/complexity.
The same metric from Postgres 12 (October 2019) to Postgres 19 (November 2026) shows similar expansion with a 35% increase in configuration parameters; we are nearing 400 configuration options. The following table shows the count of configuration items from Postgres 10 through 19.
| 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
|---|---|---|---|---|---|---|---|---|---|
| 241 | 264 | 287 | 303 | 316 | 321 | 331 | 347 | 366 | 386 |
What does that mean practically? There are 73 new configuration options for me to review, along with 8 with changes, and 8 that were removed. The following screenshot shows the summary of changes.

Exciting Features in Postgres 19
While I will be upgrading over four (4) versions and there are tons of improvements between Postgres 15 and 19, there are two improvements changes specifically in Postgres 19 I want to highlight.
- Query Planning
- JIT Default to Off
Query planning
I am excited to put the new query planning functionality in Postgres 19
to the test. Spatial queries often have performance issues because
the planner can't figure out a good plan on complex spatial joins.
I have hopes the new functionality
through pg_plan_advice (module)
and
pg_stat_advice (extension)
will open a world of potential improvement in this space.
JIT Default reverts to off
Just-in-Time (JIT) compilation
was added in Postgres 11 (default off).
It was promoted to default to on in Postgres 12, and with Postgres 19 it is finally been
disabled by default
again. Shortly after I started testing Postgres 12
I found it was harmful
for many of my workloads.
Other projects, including osm2pgsql, ultimately
disabled JIT
in their queries to avoid the headaches.
"... performance testing of JIT on our workloads and found no benefit to having JIT enabled. That alone wasn't enough for me to disable the feature though. It was the discovery that osm2pgsql performance can be severely impacted by JIT."
Improvements from Postgres 16 to 18
Considering I'm jumping a few versions, I get to start using a variety of features I haven't had in production yet. Here are a few more features I'm looking forward working in where appropriate.
Postgres 16 introduced the any_value() function for those times it really doesn't matter which value
you get.
Postgres 17 added the pg_stat_checkpointer system view. This new view provides details about the checkpointer process.
I have been a fan of stored generated columns since they were added in Postgres 12. Stored generated columns are written to disk as part of the table. Postgres 18 adds the virtual option, which pushes the calculation to query time.
Summary
I am excited to upgrade from Postgres 15 to Postgres 19 in the coming weeks. Once I complete that upgrade, I can truly start using a range of new features from the last few years of Postgres improvements.