LIVE
Rumours that AI labs can break encryption run ahead of the evidence AI-Assisted Search Points to a Possible Dwarf Planet in the Outer Solar System ICE Expands Surveillance Reach Using Flock Safety Camera Network via Local Police Proxies Startups Showcase Body-Integrated Tech with Smart Lenses and Graphene Bandages Nvidia CEO Jensen Huang Set for Congressional Hearings on China Ties and Chip Sales Dating App User Banned After Secretly Recording Dates for AI Analysis RuneScape Developer Jagex Urges Password Resets Following Security Breach Anthropic and OpenAI: how the enterprise AI race has shifted US Federal Cases Trace $974 Million in Banned Nvidia Hardware Rerouted to China Lawmakers to press Nvidia's Jensen Huang over alleged chip smuggling to China Rumours that AI labs can break encryption run ahead of the evidence AI-Assisted Search Points to a Possible Dwarf Planet in the Outer Solar System ICE Expands Surveillance Reach Using Flock Safety Camera Network via Local Police Proxies Startups Showcase Body-Integrated Tech with Smart Lenses and Graphene Bandages Nvidia CEO Jensen Huang Set for Congressional Hearings on China Ties and Chip Sales Dating App User Banned After Secretly Recording Dates for AI Analysis RuneScape Developer Jagex Urges Password Resets Following Security Breach Anthropic and OpenAI: how the enterprise AI race has shifted US Federal Cases Trace $974 Million in Banned Nvidia Hardware Rerouted to China Lawmakers to press Nvidia's Jensen Huang over alleged chip smuggling to China

PostgreSQL 19 Performance Tests Reveal Mixed Results for Expression Aggregates and JIT Settings

🔌 Chips & Hardware 1 min read 👁 4

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.

PostgreSQL 19 Performance Tests Reveal Mixed Results for Expression Aggregates and JIT Settings🔌Chips & Hardware

Photo: 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… ↗

Contact the newsroom

Got a tip, a proposal or a partnership question? Write to us and we will reply shortly.