Dimitri Fontaine: What Changes for SQL in PostgreSQL 19

2026年12月1日

AI 摘要 AI 生成,可能有误

This article analyzes what PostgreSQL 19.0, released on November 19, changes for SQL, based on running the queries from The Art of PostgreSQL on versions 19.0 and 18.6 and reading the final release notes. The findings include 7 headline features withdrawn before release, 11 changes affecting existing SQL, roughly 20 new features, and an 8-step upgrade checklist. While release-day posts emphasize REPACK, plan advice, and ON CONFLICT DO SELECT, the change with the most consequences for existing SQL is that the planner now reads NOT NULL constraints and rewrites queries with them.

Postgres 19.0 was released on November 19. Two articles covered the beta here in September, Getting Ready for PostgreSQL 19 and Plan Advice in PostgreSQL 19. Before updating The Art of PostgreSQL for 19, we ran the queries it teaches on 19.0 and on 18.6, and read the final release notes against them. This article is what we found, limited to what Postgres 19 changes: 7 headline features withdrawn before the release, 11 changes that reach SQL you already wrote, about 20 new features, and an 8-step checklist for the upgrade.

The release-day posts mostly lead with REPACK, plan advice and ON CONFLICT DO SELECT. For SQL that already exists, the change with the most consequences is quieter: the planner now reads your NOT NULL constraints and rewrites queries with them.

▸

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Planet PostgreSQL

Jobin Augustine: Stop Fighting Synchronous Replication: Meet WAIT FOR LSN – Part 1

WAIT FOR LSN in PostgreSQL 19, a 3-part series Part 1: Stop Fighting Synchronous Replication: Meet WAIT FOR LSN (you are here) Part 2: Hands-on with WAIT FOR LSN: a walkthrough for DBAs Part 3: WAIT FOR LSN under load: numbers, tuning and t

Christophe Pettus: All Your GUCs in a Row: server_version and server_version_num

`server_version` and `server_version_num` look simple until you upgrade packages without restarting the server, or put a pooler in front of it. (I consult on PostgreSQL through PGX Inc..)

Deepak Mahto: Exploring PostgreSQL 19: A Developer’s Guide to New Features – Part 1: INSERT ON CONFLICT DO SELECT

Read time: ~8 minutes PostgreSQL 19 finally lets INSERT hand back the row that already exists, no dummy update, no exception block, no second round trip. PostgreSQL 19 was released on November 19, 2026. With it, I’m starting a new series: w

Chris Travers: PostgreSQL’s Best Kept Secret: COPY

A customer asked me recently how to optimize performance writing to PostgreSQL from a Flink pipeline. Without hesitation, I recommended using PostgreSQL’s COPY interface. The result was approximately twice the throughput. This post explores

Jeremy Schneider: Introducing CNPG Extensions Catalog

Postgres is an extensible platform, not just a database. I’ve been cooking this year on a side project with Postgres extensions and Kubernetes – finally ready to share what I’ve built. The CNPG Extensions Catalog is over a hundred extension