diff options
author | Andres Freund <andres@anarazel.de> | 2017-08-24 17:01:36 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2017-08-24 17:01:36 -0700 |
commit | d7694fc148707cd8335d9ccfde9f4c17290189db (patch) | |
tree | 1329774530a926ab580e878be5ea41da0d0775a7 /src/backend/executor/nodeFunctionscan.c | |
parent | 4569715bd6faa4c43e489a7069ab7abca68ff663 (diff) | |
download | postgresql-d7694fc148707cd8335d9ccfde9f4c17290189db.tar.gz postgresql-d7694fc148707cd8335d9ccfde9f4c17290189db.zip |
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
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions