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: Improve programmer docs for simplehash and dynahash.
Date: Sat, 01 Aug 2020 00:16:26 +0000
Message-ID: <E1k1fCM-00006h-6B@gemulon.postgresql.org> (raw)

Improve programmer docs for simplehash and dynahash.

When reading the code it's not obvious when one should prefer dynahash
over simplehash and vice-versa, so, for programmer-friendliness, add
comments to inform that decision.

Show sample simplehash method signatures.

Author: James Coleman <jtc331@gmail.com>
Discussion: https://postgr.es/m/CAAaqYe_dOF39gAJ8rL-a3YO3Qo96MHMRQ2whFjK5ZcU6YvMQSA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/84c0e4b9bce794da914fe9c062753bf21369745f

Modified Files
--------------
src/backend/utils/hash/dynahash.c | 12 ++++++-
src/include/lib/simplehash.h      | 73 ++++++++++++++++++++++++++++++++++++---
2 files changed, 80 insertions(+), 5 deletions(-)



Message-ID: <E1k1fCM-00006h-6B@gemulon.postgresql.org>
Permalink:  ../E1k1fCM-00006h-6B@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1k1fCM-00006h-6B@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: Improve programmer docs for simplehash and dynahash.
  In-Reply-To: <E1k1fCM-00006h-6B@gemulon.postgresql.org>
  References: <E1k1fCM-00006h-6B@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