Get the latest tech news

Ten years of improvements in PostgreSQL's optimizer


Ryan Marcus, assistant professor at the University of Pennsylvania (Fall '23). Using machine learning to build the next generation of data systems.

While changelogs and opinion pieces were plentiful, I couldn’t find any strong empirical comparisons, so I decided to run the join order benchmark(JOB) on PostgreSQL 8 through 16. Since I wanted to measure the quality of the query optimizer, and not index/IO performance, I set shared_buffers to 8GB (large enough to hold the entire database). We can use regression analysis to (1) confirm that the downward slope in latency is significant, and (2) quantify how much improvement is brought by each version of PostgreSQL.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of years

years

Photo of improvements

improvements

Photo of PostgreSQL

PostgreSQL

Related news:

News photo

Thousands of apps ported back to Windows 95 twenty-eight years later — .NET Framework port enables backward compatibility for modern software

News photo

War Robots hits $900M and 270M players to date after 10 years

News photo

Weird monitor bugs people sent me in the last 5 years (2022)