Track SLRU page hits in SimpleLruReadPage_ReadOnly
authorTomas Vondra <tomas.vondra@postgresql.org>
Wed, 8 Apr 2020 00:06:00 +0000 (02:06 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Wed, 8 Apr 2020 00:15:47 +0000 (02:15 +0200)
commit2b88fdde30d8e9bf833b75a014189e9148233b85
treeb53c5681d7cf6ae8efa29fa36c2cae0b5fbfa334
parent91c40548d5f7a9241d9fa344fae8069cfdb92bf2
Track SLRU page hits in SimpleLruReadPage_ReadOnly

SLRU page hits were tracked only in SimpleLruReadPage, but that's not
enough because we may hit the page in SimpleLruReadPage_ReadOnly in
which case we don't call SimpleLruReadPage at all.

Reported-by: Kuntal Ghosh
Discussion: https://postgr.es/m/20200119143707.gyinppnigokesjok@development
src/backend/access/transam/slru.c