agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add index scan pgstat test coverage.
Date: Thu, 03 Sep 2026 20:27:30 +0000
Message-ID: <E1x2E1x-00000003MKO-2gxT@gemulon.postgresql.org> (raw)

Add index scan pgstat test coverage.

Add tests that verify the exact values of the idx_tup_read and
idx_tup_fetch counters in pg_stat_all_indexes.  There was no existing
coverage of pg_stat_all_indexes, beyond some counter reset tests;
idx_tup_read and idx_tup_fetch had no tests at all.

This is preparation for an upcoming commit that will move index scan
heap fetches behind a new slot-based table AM interface, relocating the
code that maintains these counters.

Author: Peter Geoghegan <pg@bowt.ie>
Reviewed-by: Tomas Vondra <tomas@vondra.me>
Discussion: https://postgr.es/m/CAH2-Wz%3DV0V5WGuo85D-OF%2BTM_CxU3q%3DMMkY-ebY0K8xc-9Xykw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/83032dc42cab67dfdd33152d08434785977f069f

Modified Files
--------------
src/test/regress/expected/stats.out | 62 +++++++++++++++++++++++++++++++++++++
src/test/regress/sql/stats.sql      | 32 +++++++++++++++++++
2 files changed, 94 insertions(+)



Message-ID: <E1x2E1x-00000003MKO-2gxT@gemulon.postgresql.org>
Permalink:  ../E1x2E1x-00000003MKO-2gxT@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1x2E1x-00000003MKO-2gxT@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: pg@bowt.ie, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add index scan pgstat test coverage.
  In-Reply-To: <E1x2E1x-00000003MKO-2gxT@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox