- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit3778bcb
committed
Count SP-GiST index scans in pg_stat statistics.
Somehow, spgist overlooked the need to call pgstat_count_index_scan().Hence, pg_stat_all_indexes.idx_scan and equivalent columns neverbecame nonzero for an SP-GiST index, although the related per-tuplecounters worked fine.This fix works a bit differently from other index AMs, in that thecounter increment occurs in spgrescan not spggettuple/spggetbitmap.It looks like this won't make the user-visible semantics noticeablydifferent, so I won't go to the trouble of introducing an is-this-the-first-call flag just to make the counter bumps happen in thesame places.Per bug #17163 from Christian Quest. Back-patch to all supportedversions.Discussion:https://postgr.es/m/17163-b8c5cc88322a5e92@postgresql.org1 parentce42efa commit3778bcb
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
| |||
419 | 420 |
| |
420 | 421 |
| |
421 | 422 |
| |
| 423 | + | |
| 424 | + | |
| 425 | + | |
422 | 426 |
| |
423 | 427 |
| |
424 | 428 |
| |
|
0 commit comments
Comments
(0)