aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2024-11-02 09:04:55 -0700
committerNoah Misch <noah@leadboat.com>2024-11-02 09:04:55 -0700
commitb412f402d1e020c5dac94f3bf4a005db69519b99 (patch)
tree8f393cdd69b68fa6381cfcef3123350dc7b13232 /src/backend/access/gist/gistget.c
parent2fa255ce9b9536450c9f86bd7c15778f58cf3777 (diff)
downloadpostgresql-b412f402d1e020c5dac94f3bf4a005db69519b99.tar.gz
postgresql-b412f402d1e020c5dac94f3bf4a005db69519b99.zip
Move I/O before the index_update_stats() buffer lock region.
Commit a07e03fd8fa7daf4d1356f7cb501ffe784ea6257 enlarged the work done here under the pg_class heap buffer lock. Two preexisting actions are best done before holding that lock. Both RelationGetNumberOfBlocks() and visibilitymap_count() do I/O, and the latter might exclusive-lock a visibility map buffer. Moving these reduces contention and risk of undetected LWLock deadlock. Back-patch to v12, like that commit. Discussion: https://postgr.es/m/20241031200139.b4@rfd.leadboat.com
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions