PostgreSQL 19 Performance Tests Reveal Mixed Results for Expression Aggregates and JIT Settings
Recent performance evaluations comparing PostgreSQL 18.7 and 19.0 show that expression-heavy aggregate queries run noticeably slower under default settings on the newer version. However, adjusting Just-In-Time (JIT) compilation can alter these outcomes depending on the specific query shape.
🔌Chips & HardwarePhoto: Hacker News Front Page
Key points
- Expression-heavy aggregate queries ran 31.6 percent slower on default PostgreSQL 19.0 compared to 18.7.
- Filtered count queries executed 16.4 percent faster on the newer version.
- Enabling JIT compilation on PostgreSQL 19.0 restored aggregate performance but slowed down filtered counts.
Testing conducted on November 22, 2026, revealed that an expression-heavy aggregate query over ten million rows performed 31.6 percent slower on PostgreSQL 19.0 than on version 18.7. Specifically, the operation took 923 milliseconds on the default 19.0 setup compared to 701 milliseconds on 18.7. The difference stems from a migration change in version 19, which disables Just-In-Time compilation by default because previous costing mechanisms were found to be unreliable.
Conversely, other operations saw performance improvements. A filtered count over a ten-million-row dataset executed 16.4 percent faster on PostgreSQL 19.0, dropping from 201 milliseconds down to 168 milliseconds. Out of seven total comparisons examined in the evaluation, five paths—including standard loading, pgbench, group-by operations, and top-100 sorts—showed no clear performance variance between the two versions.
Enabling JIT compilation manually on PostgreSQL 19.0 mitigated the slowdown for the expression-heavy aggregate, speeding it up to 732 milliseconds. Nevertheless, turning JIT on introduced a trade-off by making the filtered count query 16.7 percent slower. Database administrators running large analytical workloads involving complex expressions are advised to audit specific query shapes before migrating production environments.
What to watch next: Database teams should benchmark their specific analytical workloads on PostgreSQL 19.0 to determine the optimal JIT configuration for their query patterns.
Source Hacker News Front Page — thestacksentinel.com/articles/postgresql-18-7-and-19-0-expression-aggre… ↗
Read next
🤖AI ModelsRumours that AI labs can break encryption run ahead of the evidence
A rumour that AI labs have a fast way to factor large numbers has spread, but no break of RSA has been demonstrated.
🤖AI ModelsAI-Assisted Search Points to a Possible Dwarf Planet in the Outer Solar System
A team that used a Claude model in its analysis reports a candidate dwarf planet, roughly 590 km wide, traced through Rubin Observatory data and 2013–2019 archival images…
⚖️Regulation & PolicyICE Expands Surveillance Reach Using Flock Safety Camera Network via Local Police Proxies
US Immigration and Customs Enforcement is increasingly utilizing AI-integrated license plate readers from Flock Safety by routing requests through local police department…
🚀Startups & FundingStartups Showcase Body-Integrated Tech with Smart Lenses and Graphene Bandages
Startups Xpanceo and Grapheal presented next-generation wearable technology at Dubai Future Week, featuring smart contact lenses and graphene-based biosensor bandages des…
🚀Startups & FundingDating App User Banned After Secretly Recording Dates for AI Analysis
A New York hedge fund manager has been banned from Hinge after using a transcription app and Anthropic's Claude to secretly record and analyze his romantic dates.
⚖️Regulation & PolicyRuneScape Developer Jagex Urges Password Resets Following Security Breach
Millions of RuneScape and Old School RuneScape accounts may have been compromised after unauthorized access exposed player emails, hashed passwords, and authenticator tok…