From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Predicate locking in GIN index
Date: Fri, 30 Mar 2018 11:23:32 +0000
Message-ID: <E1f1s84-0008LZ-Dt@gemulon.postgresql.org> (raw)
Predicate locking in GIN index
Predicate locks are used on per page basis only if fastupdate = off, in
opposite case predicate lock on pending list will effectively lock whole index,
to reduce locking overhead, just lock a relation. Entry and posting trees are
essentially B-tree, so locks are acquired on leaf pages only.
Author: Shubham Barai with some editorization by me and Dmitry Ivanov
Review by: Alexander Korotkov, Dmitry Ivanov, Fedor Sigaev
Discussion: https://www.postgresql.org/message-id/flat/CALxAEPt5sWW+EwTaKUGFL5_XFcZ0MuGBcyJ70oqbWqr42YKR8Q@mail....
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/43d1ed60fdd96027f044e152176c0d45cd6bf443
Modified Files
--------------
src/backend/access/gin/ginbtree.c | 22 +
src/backend/access/gin/gindatapage.c | 10 +-
src/backend/access/gin/ginget.c | 76 ++-
src/backend/access/gin/gininsert.c | 38 +-
src/backend/access/gin/ginutil.c | 10 +-
src/backend/access/gin/ginvacuum.c | 12 +-
src/backend/storage/lmgr/README-SSI | 9 +
src/include/access/gin_private.h | 4 +-
src/test/isolation/expected/predicate-gin.out | 756 ++++++++++++++++++++++++++
src/test/isolation/isolation_schedule | 1 +
src/test/isolation/specs/predicate-gin.spec | 134 +++++
11 files changed, 1054 insertions(+), 18 deletions(-)
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: Predicate locking in GIN index
In-Reply-To: <E1f1s84-0008LZ-Dt@gemulon.postgresql.org>
References: <E1f1s84-0008LZ-Dt@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