What Changes When You Upgrade from PostgreSQL 18 to 19
Web page · https://rishigoomar.com/postgresql-19-what-changes-when-you-upgrade-from-18
First seen by Oriel on .
AI summary
The article tests PostgreSQL 19 against 18.6 and finds faster foreign-key inserts and NOT IN queries, plus native tools for online table repacking, plan advice, conflict handling, and replica consistency.
- In the author’s benchmarks, foreign-key inserts were 41.1% faster and NOT IN queries 24.5% faster; the foreign-key shortcut does not cover partitioned parents or range-based temporal foreign keys.
- REPACK (CONCURRENTLY) reclaimed table space without blocking normal reads and writes, but its final swap needs an exclusive lock and can be delayed by long-running queries.
- The built-in pg_plan_advice module exposes planner choices and lets users test alternate plans; pg_stash_advice can apply advice by query ID without changing application SQL.
- ON CONFLICT DO SELECT returns an existing row’s ID in one round-trip, while WAIT FOR LSN lets a replica wait for a committed write to become visible.
- Upgrade checks include removed io_workers, JIT being disabled by default, a higher max_locks_per_transaction default, and sequence synchronization requirements for logical replication.
#postgresql #database performance #replication #query planning
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 136, latest observation ; +127 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 69, latest observation ; +69 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50658063 | https://rishigoomar.com/postgresql-19-what-changes-when-you-upgrade-from-18 Read discussion |