Re: Use read streams in pg_visibility
Noah Misch <noah@leadboat.com>
From: Noah Misch <noah@leadboat.com>
To: Nazir Bilal Yavuz <byavuz81@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-09-03T17:50:11Z
Lists: pgsql-hackers
On Mon, Sep 02, 2024 at 03:20:12PM +0300, Nazir Bilal Yavuz wrote: > Thanks, updated patches are attached. > +/* > + * Ask the callback which block it would like us to read next, with a small > + * buffer in front to allow read_stream_unget_block() to work and to allow the > + * fast path to skip this function and work directly from the array. > */ > static inline BlockNumber > read_stream_get_block(ReadStream *stream, void *per_buffer_data) v4-0001-Add-general-use-struct-and-callback-to-read-strea.patch introduced this update to the read_stream_get_block() header comment, but we're not changing read_stream_get_block() here. I reverted this. Pushed with some other cosmetic changes.
Commits
-
Optimize pg_visibility with read streams.
- 65c310b310a6 18.0 landed
- ed1b1ee59fb3 18.0 landed
-
Revert "Optimize pg_visibility with read streams."
- ddfc556a6444 18.0 landed
-
Fix stack variable scope from previous commit.
- 1c61fd8b5279 18.0 landed
-
Add block_range_read_stream_cb(), to deduplicate code.
- c582b75851c2 18.0 landed