BUG #17163: spgist index scan statistics stays at 0

The Post Office <noreply@postgresql.org>

From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: github@cquest.org
Date: 2021-08-27T07:18:23Z
Lists: pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17163
Logged by:          Christian Quest
Email address:      github@cquest.org
PostgreSQL version: 13.4
Operating system:   Ubuntu 20.04
Description:        

The idx_scan in pg_stat_all_indexes stays at 0 for spgist index, while the
idx_tup_read and idx_tup_fetch and correctly updated.

Commits

  1. Count SP-GiST index scans in pg_stat statistics.

  2. Create core infrastructure for KNNGIST.