← 返回技术雷达
Hacker News tech

What Changes When You Upgrade from PostgreSQL 18 to 19

Hacker News 热议:What Changes When You Upgrade from PostgreSQL 18 to 19(13 赞 / 0 评论,来源 rishigoomar.com)

一句话概要

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.

原文开头节选

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.

(以上为原文节选,完整内容见下方”原文来源”)

这条动态今日登上 Hacker News 首页(13 赞 / 0 评论,来源 rishigoomar.com)。技术雷达每日自动聚合 AI 工程、后端架构、DevOps 方向的前沿动态;相关工程落地可浏览下方的相关服务与延伸阅读,或直接与我们团队交流。

原文来源: Hacker News

相关服务