From: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Reduce page locking in GIN vacuum |
Date: | 2017-03-23 16:39:21 |
Message-ID: | E1cr5lh-0008TP-GA@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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/
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/218f51584d5a9fcdf702bcc7f54b5b65e255c187
Modified Files
--------------
src/backend/access/gin/README | 15 ++-
src/backend/access/gin/ginbtree.c | 2 +-
src/backend/access/gin/ginvacuum.c | 236 ++++++++++++++++++++-----------------
src/include/access/gin_private.h | 2 +
4 files changed, 145 insertions(+), 110 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2017-03-23 17:23:01 | pgsql: Allow for parallel execution whenever ExecutorRun() is done only |
Previous Message | Peter Eisentraut | 2017-03-23 15:59:34 | Re: pgsql: Logical replication support for initial data copy |