aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistproc.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2023-11-17 11:02:52 -0800
committerAndres Freund <andres@anarazel.de>2023-11-17 12:46:55 -0800
commitb2e237afddc56a4826121169a693412d8683d940 (patch)
tree9aad78eabab778c5d7b3e8be639ccfffd1380d22 /src/backend/access/gist/gistproc.c
parentf7816aec23eed1dc1da5f9a53cb6507d30b7f0a2 (diff)
downloadpostgresql-b2e237afddc56a4826121169a693412d8683d940.tar.gz
postgresql-b2e237afddc56a4826121169a693412d8683d940.zip
Release lock on heap buffer before vacuuming FSM
When there are no indexes on a table, we vacuum each heap block after pruning it and then update the freespace map. Periodically, we also vacuum the freespace map. This was done while unnecessarily holding a lock on the heap page. Release the lock before calling FreeSpaceMapVacuumRange() and, while we're at it, ensure the range includes the heap block we just vacuumed. There are no known deadlocks or other similar issues, therefore don't backpatch. It's certainly not good to do all this work under a lock, but it's not frequently reached, making it not worth the risk of backpatching. Author: Melanie Plageman <melanieplageman@gmail.com> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/CAAKRu_YiL%3D44GvGnt1dpYouDSSoV7wzxVoXs8m3p311rp-TVQQ%40mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions