From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Improve bit perturbation in TupleHashTableHash.
Date: Mon, 29 Jan 2018 19:25:57 +0000
Message-ID: <E1egF41-0004rG-DA@gemulon.postgresql.org> (raw)
Improve bit perturbation in TupleHashTableHash.
The changes in b81b5a96f424531b97cdd1dba97d9d1b9c9d372e did not fully
address the issue, because the bit-mixing of the IV into the final
hash-key didn't prevent clustering in the input-data survive in the
output data.
This didn't cause a lot of problems because of the additional growth
conditions added d4c62a6b623d6eef88218158e9fa3cf974c6c7e5. But as we
want to rein those in due to explosive growth in some edges, this
needs to be fixed.
Author: Andres Freund
Discussion: https://postgr.es/m/20171127185700.1470.20362@wrigleys.postgresql.org
Backpatch: 10, where simplehash was introduced
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c068f87723ca9cded1f2aceb956ede49de651690
Modified Files
--------------
src/backend/executor/execGrouping.c | 11 +++++++++--
src/test/regress/expected/groupingsets.out | 30 +++++++++++++++++-------------
src/test/regress/sql/groupingsets.sql | 7 ++++---
3 files changed, 30 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: andres@anarazel.de
Subject: Re: pgsql: Improve bit perturbation in TupleHashTableHash.
In-Reply-To: <E1egF41-0004rG-DA@gemulon.postgresql.org>
References: <E1egF41-0004rG-DA@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