pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Code review for dynahash change.
Date: Sat, 19 Sep 2020 03:55:20 +0000
Message-ID: <E1kJTy4-0002Zj-2U@gemulon.postgresql.org> (raw)

Code review for dynahash change.

Commit be0a6666 left behind a comment about the order of some tests that
didn't make sense without the expensive division, and in fact we might
as well change the order to one that fails more cheaply most of the time
as a micro-optimization.  Also, remove the "+ 1" applied to max_bucket,
to drop an instruction and match the original behavior.  Per review
from Tom Lane.

Discussion: https://postgr.es/m/VI1PR0701MB696044FC35013A96FECC7AC8F62D0%40VI1PR0701MB6960.eurprd07.prod.outlook...

Branch
------
master

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

Modified Files
--------------
src/backend/utils/hash/dynahash.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)



Message-ID: <E1kJTy4-0002Zj-2U@gemulon.postgresql.org>
Permalink:  ../E1kJTy4-0002Zj-2U@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kJTy4-0002Zj-2U@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: tmunro@postgresql.org
  Subject: Re: pgsql: Code review for dynahash change.
  In-Reply-To: <E1kJTy4-0002Zj-2U@gemulon.postgresql.org>
  References: <E1kJTy4-0002Zj-2U@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