PunchPower crisis: 11 firms spend N842bn on energySözcüYılmaz, Şimşek ve Gürlek'den fon soruşturması toplantısı: Yer ve saati belli olduCBS NewsMaps show where Thanksgiving storms could disrupt holidayعالم التقنيةهواوي تحقق نحو 800 مليون دولار من ترخيص براءات الاختراع في 2025Lenta.ruЗахарова высказалась о приоритетах ЕвросоюзаThe Sydney Morning HeraldWarner directs latest barbs at Gerard Whateley in sandpaper sagaEl ComercioTemblor en Chile hoy, miércoles 25 de noviembre: reporte de magnitud y epicentro según CSNNew Straits TimesSelangor sees rise in flood evacuees as Perak numbers dipABC News (Australia)Australia's largest proposed vegetation-fuelled power plant rejected againDaily MailMinisters vow to create new standalone offence of stalking which could see offenders jailed for up to ten yearsLa PresseItinérance | Chute du nombre de tentes au campement Notre-DameObservador DesportoAs notícias das 3h
The Daily Newsstand · Free, Always
Thursday, November 26, 2026

PostgreSQL 19.0 Speeds Up Read-Only Workloads in EPYC 9996 Tests: Upgrade Gains Vary by Workload

Translate

A test published by Phoronix on November 26 compared versions 18.1 and 19.0 of the open-source PostgreSQL database. The system used AMD's 6th Gen EPYC 9996, which has 256 Zen 6c CPU cores, 16-channel MRDIMM-12800 memory, and a 7.6TB PCIe 6.0 NVMe SSD. AMD provided the EPYC 9006 test hardware.

The server configuration and settings were kept unchanged, with only the PostgreSQL version being changed. Performance was measured with pgbench, which repeatedly runs SQL from multiple clients and measures metrics such as the number of transactions—a sequence of database operations—completed per second.

The read-only tests used scale factors of 100 and 1,000 to represent the data size, with the client count also varied. The published results showed higher throughput and lower average latency in every read-only test. The largest gains appeared at scale factor 1,000.

A read/write test was also conducted at scale factor 100. Even under matching scale-factor and client-count conditions, the read-only workload showed a larger throughput increase.

The degree of performance improvement from upgrading depends on the type of work performed against the database.

PostgreSQL 18.1 → 19.0: pgbench Measurements on AMD EPYC 9996 (256 Cores)

Concurrent connectionsThroughput (transactions/sec)Average latency (ms)
Read-only, scale factor 100
500+22.8%5,334,421 → 6,549,182−19.1%0.094 → 0.076
800+23.7%5,467,935 → 6,761,670−19.2%0.146 → 0.118
1000+25.0%5,322,260 → 6,652,628−20.2%0.188 → 0.150
Read-only, scale factor 1,000
500+80.1%3,492,129 → 6,287,861−44.8%0.145 → 0.080
800+74.3%3,681,618 → 6,417,199−43.2%0.220 → 0.125
1000+74.4%3,595,952 → 6,271,509−43.3%0.282 → 0.160
Read/write, scale factor 100
500+4.2%256,142 → 266,874−4.0%1.952 → 1.874
800+3.5%216,413 → 223,948−3.4%3.697 → 3.572
1000+3.6%190,480 → 197,310−3.5%5.250 → 5.068

※Figures are approximate.

A separate test using a Ryzen 7 7800X3D

PostgreSQL 18.7, which is newer than version 18.1 used in this comparison, has also been released. Organizations already running 18.7 will want to know what changes when moving from it to 19.0.

An independent test by The Stack Sentinel compared versions 18.7 and 19.0. It used a Ryzen 7 7800X3D CPU and Docker Desktop on WSL 2 under Windows 11, limited container memory to 6GB, and kept the data in memory.

This pgbench test ran with a scale factor of 10 and eight clients. It reported no clear performance difference in either the read-only or read/write test.

The CPU scale, data volume, previous PostgreSQL version, and execution environment all differed from the EPYC test. Additional testing that changes one condition at a time would be needed to identify which factors affected the size of the gains.

The default JIT setting changed

The PostgreSQL 19 release announcement describes improvements to foreign-key constraint checks and query planning. For asynchronous I/O, which allows processing to continue without waiting for I/O to complete, the default configuration now automatically adjusts the number of worker processes handling I/O.

PostgreSQL 19 has JIT, or just-in-time compilation, disabled by default. Previous versions decided whether to use it based on an estimate of execution cost, but that estimate was reportedly unreliable.

When JIT is used, PostgreSQL can generate CPU code at runtime that is specialized for evaluating SQL expressions and similar operations. This optimization may reduce processing time for workloads that repeat large amounts of computation.

In the Ryzen 7 7800X3D test, an aggregate query that evaluated many expressions was also slower under PostgreSQL 19.0's default settings than under 18.7. After JIT was reenabled in 19.0, the difference from the older version was no longer clear.

A query that counted rows matching a condition took longer when JIT was enabled in 19.0. The effect of JIT varies by workload. For tests that do not explicitly state their settings, a change in the default alone can alter behavior.

PostgreSQL: Processing Time by JIT Setting on Ryzen 7 (ms)

Task18.7
Enabled
19.0
Disabled
19.0
Enabled
Ryzen 7 7800X3D; data held in memory

Windows 11 / WSL 2; 6GB container memory limit

Default JIT setting: enabled in 18.7 / disabled in 19.0

pgbench: total test time (scale factor 10; 8 concurrent connections)
Read-only40,000 transactions696.1691.8Compared with 18.7No clear difference—
Read/write8,000 transactions907.9907.8Compared with 18.7No clear difference—
Aggregate query: 10 million rows
Expression-heavy aggregate701.4923.1+31.6% vs. 18.7731.7−20.7% vs. disabledCompared with 18.7No clear difference
Count of matching rows200.8168.0−16.4% vs. 18.7196.1+16.7% vs. disabled

※Processing times are medians of 11 runs, rounded to one decimal place.

※— indicates unknown.

Changes for maintaining performance in production

PostgreSQL 19 arrived after the production release was delayed. The Japan PostgreSQL User Group also announced the production release on November 20.

Autovacuum can now use multiple workers for index processing. In addition, when a read query determines that every row on a page is visible to all active transactions, PostgreSQL can record that state and reduce the work required by a subsequent vacuum operation.

PostgreSQL 19 also introduced REPACK, which reorganizes bloated tables to reclaim unused space. With the CONCURRENTLY option, reads and writes can continue through most of the reorganization. The official command documentation explains that an exclusive lock is acquired during the final file swap and that concurrent transactions using a snapshot taken before the reorganization began may see an empty table after the reorganization commits.

The pg_plan_advice extension can also stabilize query-plan selection. Used with pg_stash_advice, stored guidance can be applied automatically based on a query identifier.

WAIT FOR LSN was added for reads on standby servers used as replication targets. It allows a read to wait until changes have been applied through a specified log position.

Some improvements make operations themselves faster; others help maintain performance and responsiveness over long-term operation. The latter can be just as valuable in real systems.

Before migrating production systems

Moving from PostgreSQL 18 to 19 requires dumping and restoring the data, or using pg_upgrade or logical replication. The official release notes also describe changes that affect compatibility with previous versions.

In Japan, previously published case studies from the PostgreSQL Enterprise Consortium include Toyota Motor's ALC production management system, Hitachi's intercompany data exchange service, and an NTT Group billing system. These are workloads where the ability to continue operating during updates, aggregation, and maintenance is important in addition to data retrieval.

Organizations considering an upgrade should measure throughput and latency with the queries and data volumes they actually use, and determine whether that performance can be maintained during maintenance work.

Before procuring new servers to increase capacity, it is worth measuring the performance available from an upgrade. Existing hardware may still have more performance to offer.

Get more with a free account

Confirmation email sent — we sent a link to this address. Open the email and click the link to finish signing up. If it doesn't arrive, please check your spam folder.

View the original on Joho no Todai →

KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.