On Thu, Oct 15, 2026 at 6:04 PM Sami Imseih <[email protected]> wrote:
> I did not look too much into the patch details, but I do think this is a
> good idea. For example, there can be a real cost difference between checking
> visibility for 20 table tuples spread across 20 table blocks and checking
> visibility for 20 table tuples packed onto 1 table block. So having such
> additional information seems valuable.

Right.

> Exposing this in pg_stat_*_indexes would also make sense.

Let's leave that for another patch.

> I think we should keep the equivalent of "Heap Fetches", although I do
> think the name itself has always seemed too vague. It is easy to read it
> as blocks, or as rows returned, when it is really counting table tuple
> visibility checks. "Table Tuple Fetches" would be clear along with the one
> you're proposing.

Attached v2 shows both rows/tuples and blocks on a single line, as
"Table Fetches: rows=N blocks=N" for text format EXPLAIN. For the
non-text formats, we show separate "Table Row Fetches" and "Table
Block Fetches" fields.

-- 
Peter Geoghegan

Attachment: v2-0001-EXPLAIN-ANALYZE-Show-index-only-scan-block-fetche.patch
Description: Binary data

Reply via email to