Read streams
Streaming/vectored read API (read_stream) and converting scans, vacuum, ANALYZE and contrib modules to use it.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · shipped · improved · moderate · 19 commits · +1.6k / -449 lines
- PostgreSQL 18 · shipped · new · major · 47 commits · +3k / -2.1k lines
- Streaming I/O, vectored I/O (WIP)
- Confine vacuum skip logic to lazy_scan_skip
- BitmapHeapScan streaming read user and prelim refactoring
- Use read streams in CREATE DATABASE command when the strategy is wal_log
- Using read stream in autoprewarm
- Use read streams in pg_visibility
- Using read_stream in index vacuum
- read stream on amcheck
- Some read stream improvements
- Finalizing read stream users' flag choices
- PostgreSQL 17 · shipped · new · major · 26 commits · +2.9k / -1.1k lines
Threads
- Fix ReadStream handling when heap rescan strategy changes
- [PATCH] Use streaming read I/O in sample scans
- [PATCH] Use maintenance_io_concurrency for parallel index builds
- EXPLAIN: showing ReadStream / prefetch stats
- Use streaming read I/O when enabling data checksums online
- [PATCH] vacuum: stop using stream ring after failsafe
- BUG: ReadStream look-ahead exhausts local buffers when effective_io_concurrency>=64
- Streamify more code paths
- lazy_scan_heap: avoid vacuum block, already vacuumed (src/backend/access/heap/vacuumlazy.c)
- BUG #19551: TRAP: failed Assert("max_pinned_buffers > 0")
- Re: Beautify read stream "per buffer data" APIs
- [PATCH] psql: Add missing IO option to EXPLAIN tab completion
- BUG #19006: Assert(BufferIsPinned) in BufferGetBlockNumber() is triggered for forwarded buffer
- Trying out read streams in pgvector (an extension)
- Use streaming read I/O in BRIN vacuuming
- pgstattuple: Use streaming read API in pgstatindex functions
- Confine vacuum skip logic to lazy_scan_skip
- Finalizing read stream users' flag choices
- Move block_range_read_stream_cb batchmode comment
- BitmapHeapScan streaming read user and prelim refactoring
- Streaming relation data out of order
- Some read stream improvements
- Using read stream in autoprewarm
- read stream on amcheck
- Using read_stream in index vacuum
- pgsql: Increase default maintenance_io_concurrency to 16
- Hot standby queries see transient all-zeros pages
- Use streaming read API in pgstattuple.
- Question about read_stream_look_ahead()
- smgrextendv and vectorizing the bulk_write implementation
- Fix port/pg_iovec.h building extensions on x86_64-darwin
- Use streaming read API in ANALYZE
- Avoid dead code (contrib/pg_visibility/pg_visibility.c)
- Use read streams in pg_visibility
- v17 vs v16 performance comparison
- Streaming read-ready sequential scan code
- Streaming I/O, vectored I/O (WIP)
- Use read streams in CREATE DATABASE command when the strategy is wal_log
- Vectored I/O in bulk_write.c
- Assert in heapgettup_pagemode() fails due to underlying buffer change
- Fix an incorrect assertion condition in mdwritev().
- WIP: Vectored writeback
- Experimental prefetching of buffer memory
- Why does BitmapPrefetch() skip fetch based on current block recheck flag
- linux cachestat in file Readv and Prefetch