From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: pgsql: Reduce page locking in GIN vacuum
Date: Thu, 23 Mar 2017 16:39:21 +0000
Message-ID: <E1cr5lh-0008TP-GA@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: teodor@sigaev.ru
Subject: Re: pgsql: Reduce page locking in GIN vacuum
In-Reply-To: <E1cr5lh-0008TP-GA@gemulon.postgresql.org>
References: <E1cr5lh-0008TP-GA@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox