forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdbb239d
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 parent53597fd commitdbb239d
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 |
| |
| |||
405 | 406 |
| |
406 | 407 |
| |
407 | 408 |
| |
| 409 | + | |
| 410 | + | |
| 411 | + | |
408 | 412 |
| |
409 | 413 |
| |
410 | 414 |
| |
|
0 commit comments
Comments
(0)