pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix locking problem in _hash_squeezebucket() / _hash_freeovflpag
Date: Mon, 19 Dec 2016 17:35:13 +0000
Message-ID: <E1cJ1qD-0000IG-7g@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Fix locking problem in _hash_squeezebucket() / _hash_freeovflpage().

A bucket squeeze operation needs to lock each page of the bucket
before releasing the prior page, but the previous coding fumbled the
locking when freeing an overflow page during a bucket squeeze
operation.  Commit 6d46f4783efe457f74816a75173eb23ed8930020
introduced this bug.

Amit Kapila, with help from Kuntal Ghosh and Dilip Kumar, after
an initial trouble report by Jeff Janes.  Reviewed by me.  I also
fixed a problem with a comment.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/dd728826c538f000220af98de025c00114ad0631

Modified Files
--------------
src/backend/access/hash/hashovfl.c | 41 +++++++++++---------------------------
src/include/access/hash.h          |  2 +-
2 files changed, 13 insertions(+), 30 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1cJ1qD-0000IG-7g@gemulon.postgresql.org>
Permalink:  ../E1cJ1qD-0000IG-7g@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cJ1qD-0000IG-7g@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: rhaas@postgresql.org
  Subject: Re: pgsql: Fix locking problem in _hash_squeezebucket() / _hash_freeovflpag
  In-Reply-To: <E1cJ1qD-0000IG-7g@gemulon.postgresql.org>
  References: <E1cJ1qD-0000IG-7g@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