diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2017-03-23 19:38:47 +0300 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2017-03-23 19:38:47 +0300 |
commit | 218f51584d5a9fcdf702bcc7f54b5b65e255c187 (patch) | |
tree | 6aa7f521be1a389a5cb8de72c58246f2c927e9d4 /src/backend/commands/portalcmds.c | |
parent | 73561013e5aa44a1669b2cb4351f5e2b29485efb (diff) | |
download | postgresql-218f51584d5a9fcdf702bcc7f54b5b65e255c187.tar.gz postgresql-218f51584d5a9fcdf702bcc7f54b5b65e255c187.zip |
Reduce page locking in GIN vacuum
GIN vacuum during cleaning posting tree can lock this whole tree for a long
time with by holding LockBufferForCleanup() on root. Patch changes it with
two ways: first, cleanup lock will be taken only if there is an empty page
(which should be deleted) and, second, it tries to lock only subtree, not the
whole posting tree.
Author: Andrey Borodin with minor editorization by me
Reviewed-by: Jeff Davis, me
https://commitfest.postgresql.org/13/896/
Diffstat (limited to 'src/backend/commands/portalcmds.c')
0 files changed, 0 insertions, 0 deletions