From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Consolidate the function pointer types used by dshash.c. |
Date: | 2017-08-25 00:52:52 |
Message-ID: | E1dl2rk-0001VH-44@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Consolidate the function pointer types used by dshash.c.
Commit 8c0d7bafad36434cb08ac2c78e69ae72c194ca20 introduced dshash with hash
and compare functions like DynaHash's, and also variants that take a user
data pointer instead of size. Simplify the interface by merging them into
a single pair of function pointer types that take both size and a user data
pointer.
Since it is anticipated that memcmp and tag_hash behavior will be a common
requirement, provide wrapper functions dshash_memcmp and dshash_memhash that
conform to the new function types.
Author: Thomas Munro
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/20170823054644.efuzftxjpfi6wwqs%40alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d7694fc148707cd8335d9ccfde9f4c17290189db
Modified Files
--------------
src/backend/lib/dshash.c | 65 +++++++++++++++++++++---------------------------
src/include/lib/dshash.h | 37 ++++++++-------------------
2 files changed, 39 insertions(+), 63 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2017-08-25 06:36:03 | Re: [COMMITTERS] pgsql: Fix bug that can cause walsender not to terminating at shutdown. |
Previous Message | Andres Freund | 2017-08-24 22:22:14 | pgsql: Fix bug that can cause walsender not to terminating at shutdown. |