aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_inline.cpp
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:05:02 -0700
commit6c837c237bf821ee78522259c847f417d1e11fd7 (patch)
treebe55697d935b90e452090457087a312b1240f790 /src/backend/jit/llvm/llvmjit_inline.cpp
parent6f9dd2282e37589bdadf15423b0395ce11735f82 (diff)
downloadpostgresql-6c837c237bf821ee78522259c847f417d1e11fd7.tar.gz
postgresql-6c837c237bf821ee78522259c847f417d1e11fd7.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/jit/llvm/llvmjit_inline.cpp')
0 files changed, 0 insertions, 0 deletions