diff options
author | Noah Misch <noah@leadboat.com> | 2024-10-29 09:39:55 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2024-10-29 09:39:59 -0700 |
commit | 11e3f288f3dbda8b460aba93e1c18b55017e7b08 (patch) | |
tree | 0fee1eb5de340af6013a6ac7ec8269a489cb6835 /src/backend/executor/tqueue.c | |
parent | dedced73e00fc048ba9fbaa5a416b61aebcb42f9 (diff) | |
download | postgresql-11e3f288f3dbda8b460aba93e1c18b55017e7b08.tar.gz postgresql-11e3f288f3dbda8b460aba93e1c18b55017e7b08.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/executor/tqueue.c')
0 files changed, 0 insertions, 0 deletions