From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: hash: Refactor bucket squeeze code.
Date: Mon, 27 Feb 2017 17:10:02 +0000
Message-ID: <E1ciOoE-0002rk-QU@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
hash: Refactor bucket squeeze code.
In preparation for adding write-ahead logging to hash indexes,
refactor _hash_freeovflpage and _hash_squeezebucket so that all
related page modifications happen in a single section of code. The
previous coding assumed that it would be fine to move tuples one at a
time, and also that the various operations involved in freeing an
overflow page didn't necessarily all need to be done together, all
of which is true if you don't care about write-ahead logging.
Amit Kapila, with slight changes by me.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b0f18cb77f50a54e997d857d592f6a511617f52c
Modified Files
--------------
src/backend/access/hash/hashinsert.c | 41 ++++++++
src/backend/access/hash/hashovfl.c | 189 ++++++++++++++++++++++-------------
src/backend/access/hash/hashpage.c | 1 -
src/backend/storage/page/bufpage.c | 27 +++++
src/include/access/hash.h | 7 +-
src/include/storage/bufpage.h | 1 +
6 files changed, 196 insertions(+), 70 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: rhaas@postgresql.org
Subject: Re: pgsql: hash: Refactor bucket squeeze code.
In-Reply-To: <E1ciOoE-0002rk-QU@gemulon.postgresql.org>
References: <E1ciOoE-0002rk-QU@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