diff options
author | Noah Misch <noah@leadboat.com> | 2024-11-02 09:04:55 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2024-11-02 09:05:08 -0700 |
commit | d729f1ea5a46963f3d4b0dd1268f3583b1cdbe9e (patch) | |
tree | 2245685675c5714f1e76fdfa1a536202256ce8a6 /src/backend/jit/llvm/llvmjit.c | |
parent | 4b0f7d6c162e9a52e5c2bf1098d4ffd0b107425c (diff) |
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/jit/llvm/llvmjit.c')
0 files changed, 0 insertions, 0 deletions