Get the latest tech news

Postgres 17: Streaming I/O for sequential scans and ANALYZE


We discuss streaming and vectored I/O in Postgres 17. This is an important step towards implementing asynchronous I/O in Postgres. In Postgres 17 we do not yet have asynchronous I/O, but we do see a performance benefit from what is essentially a refactoring work around the internal APIs.

future this will allow for actual asynchronous I/O to happen, but in the meantime, just the fact that the internal APIs are now refactored to work with multiple blocks at a time, will already allow some performance optimization in certain cases. And now, the change where some people will see a noticable direct performance improvement on their production workloads with 17, is to use streaming I/O for sequential reads, authored by Melanie Plageman. For example, last year around the time Thomas proposed this new patch series, there was on the Postgres performance mailing list, who was using a zstd-compressed btrfs filesystem, that does not do any I/O merging.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Postgres

Postgres

Photo of sequential scans

sequential scans

Photo of ANALYZE

ANALYZE

Related news:

News photo

Pg_lakehouse: A DuckDB Alternative in Postgres

News photo

Show HN: Pg_analytica – Speed up queries by exporting tables to columnar format

News photo

How Novy Built Zelma for Emily Oster Using OpenAI and Postgres