pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Predicate locking in hash indexes.
Date: Sat, 07 Apr 2018 13:59:36 +0000
Message-ID: <E1f4oNU-0005Z7-Nk@gemulon.postgresql.org> (raw)

Predicate locking in hash indexes.

Hash index searches acquire predicate locks on the primary
page of a bucket. It acquires a lock on both the old and new buckets
for scans that happen concurrently with page splits. During a bucket
split, a predicate lock is copied from the primary page of an old
bucket to the primary page of a new bucket.

Author: Shubham Barai, Amit Kapila
Reviewed by: Amit Kapila, Alexander Korotkov, Thomas Munro
Discussion: https://www.postgresql.org/message-id/flat/CALxAEPvNsM2GTiXdRgaaZ1Pjd1bs+sxfFsf7Ytr+iq+5JJoYXA@mail....

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b508a56f2f3a2d850e75a14661943d6b4dde8274

Modified Files
--------------
src/backend/access/hash/hash.c                 |   2 +-
src/backend/access/hash/hashinsert.c           |   3 +
src/backend/access/hash/hashpage.c             |   6 +
src/backend/access/hash/hashsearch.c           |   3 +
src/backend/storage/lmgr/README-SSI            |   7 +
src/test/isolation/expected/predicate-hash.out | 659 +++++++++++++++++++++++++
src/test/isolation/isolation_schedule          |   1 +
src/test/isolation/specs/predicate-hash.spec   | 122 +++++
8 files changed, 802 insertions(+), 1 deletion(-)



Message-ID: <E1f4oNU-0005Z7-Nk@gemulon.postgresql.org>
Permalink:  ../E1f4oNU-0005Z7-Nk@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f4oNU-0005Z7-Nk@gemulon.postgresql.org

 · 

reply

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 hash indexes.
  In-Reply-To: <E1f4oNU-0005Z7-Nk@gemulon.postgresql.org>
  References: <E1f4oNU-0005Z7-Nk@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