Introduce hash_search_with_hash_value() function
authorAlexander Korotkov <[email protected]>
Wed, 7 Aug 2024 03:51:16 +0000 (06:51 +0300)
committerAlexander Korotkov <[email protected]>
Wed, 7 Aug 2024 04:06:17 +0000 (07:06 +0300)
commitd0f020037e19c33c74d683eb7e0c7cc5725294b4
treeebee31f7f9c24f3dff12fddd0cfe638a0a833cab
parent3ab2668d48476e31d8809fbb36c9ee739cc444e1
Introduce hash_search_with_hash_value() function

This new function iterates hash entries with given hash values.  This function
is designed to avoid full sequential hash search in the syscache invalidation
callbacks.

Discussion: https://postgr.es/m/5812a6e5-68ae-4d84-9d85-b443176966a1%40sigaev.ru
Author: Teodor Sigaev
Reviewed-by: Aleksander Alekseev, Tom Lane, Michael Paquier, Roman Zharkov
Reviewed-by: Andrei Lepikhov
src/backend/utils/hash/dynahash.c
src/include/utils/hsearch.h