← Back to Tech Radar
Hacker News tech

What Changes When You Upgrade from PostgreSQL 18 to 19

Trending on Hacker News: What Changes When You Upgrade from PostgreSQL 18 to 19 (13 points / 0 comments, via rishigoomar.com)

In one line

I ran PostgreSQL 18.6 and 19.0 side by side to test the upgrades you’ll actually feel day to day, from faster foreign-key inserts and native REPACK to plan advice, ON CONFLICT DO SELECT, and WAIT FOR LSN.

Opening excerpt

PostgreSQL 19 came out on November 19. If you’re already running 18, the real question isn’t what’s in the release announcement , it’s which changes you’ll actually feel in day-to-day work.

I spun up PostgreSQL 18.6 and 19.0 side by side to try out the upgrades I’d care about most on a real app. I wanted to see whether batch inserts into tables with foreign keys get noticeably faster without changing any SQL, how much of a pg_repack maintenance job 19’s new native command can replace, and how well a few quality-of-life additions hold up in practice.

I started by timing two common patterns against the exact same data on PostgreSQL 18.6 and 19.0. One inserts 100,000 rows into a table with a foreign key, and the other finds missing IDs using NOT IN . Here are the median execution times across seven runs (full environment details are at the bottom of the post):

If you’ve ever run a bulk import into a table with foreign keys, you’ve probably noticed how much slower it is than writing to a plain table.

(Excerpted from the original; full article via the source link below.)

This story hit the Hacker News front page today (13 points / 0 comments, via rishigoomar.com). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.

Source: Hacker News

Related Services

Related Reading