aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/SectionMemoryManager.cpp
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2024-10-29 09:39:55 -0700
committerNoah Misch <noah@leadboat.com>2024-10-29 09:39:58 -0700
commit370bc7740286d342068ce8813ce87aaa4e97973a (patch)
tree65de26a6629251335e9dfe8c83dc7bb4f6d9a2f2 /src/backend/jit/llvm/SectionMemoryManager.cpp
parenta0c8d600bb74e4e8914eceed219bfb069b7908cb (diff)
downloadpostgresql-370bc7740286d342068ce8813ce87aaa4e97973a.tar.gz
postgresql-370bc7740286d342068ce8813ce87aaa4e97973a.zip
Unpin buffer before inplace update waits for an XID to end.
Commit a07e03fd8fa7daf4d1356f7cb501ffe784ea6257 changed inplace updates to wait for heap_update() commands like GRANT TABLE and GRANT DATABASE. By keeping the pin during that wait, a sequence of autovacuum workers and an uncommitted GRANT starved one foreground LockBufferForCleanup() for six minutes, on buildfarm member sarus. Prevent, at the cost of a bit of complexity. Back-patch to v12, like the earlier commit. That commit and heap_inplace_lock() have not yet appeared in any release. Discussion: https://postgr.es/m/20241026184936.ae.nmisch@google.com
Diffstat (limited to 'src/backend/jit/llvm/SectionMemoryManager.cpp')
0 files changed, 0 insertions, 0 deletions