Hi,

I've taken a quick look on the 0001 patch today. The patch is in a very
good shape, I like how the new API is shaped and how it's split between
the various heap/index layers.

Fow now I only have one minor question / comment about idx_tup_read.

The idx_tup_read used to mean "number of tuples returned by the scan of
the index", and AFAIK it used to be the number of TIDs returned by
amgettuple(). But now it counts the whole batch at once, no matter how
many of the TIDs end up being actually returned.

It's probably worse, because it also includes tuples from "prefetched"
batches (after 0007).

Maybe it's not wrong, but I'm not sure it's entirely desirable either.
It means that the counts will be inflated by an order of magnitude (or
more), relative to "old" values (e.g. for LIMIT 1 queries).

But I wonder how meaningful the value idx_tup_read is. I doubt it can be
used for the same analysis / monitoring as before. It's also harder
because the behavior will depend on which API the index uses. So there
will be a mix of indexes. That might be tricky to handle for various
monitoring tools.


regards

-- 
Tomas Vondra



Reply via email to