pgsql: Introduce hash_search_with_hash_value() function

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Introduce hash_search_with_hash_value() function
Date: 2024-08-07 04:08:11
Message-ID: E1sbXy7-00340L-0P@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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

Branch
------
master

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

Modified Files
--------------
src/backend/utils/hash/dynahash.c | 38 ++++++++++++++++++++++++++++++++++++++
src/include/utils/hsearch.h | 5 +++++
2 files changed, 43 insertions(+)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Pavel Stehule 2024-08-07 06:34:21 Re: pgsql: Introduce hash_search_with_hash_value() function
Previous Message noreply 2024-08-06 21:16:26 pgsql: Tag refs/tags/REL_16_4 was created

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2024-08-07 04:15:30 Re: Windows default locale vs initdb
Previous Message Hayato Kuroda (Fujitsu) 2024-08-07 04:01:28 RE: Conflict detection and logging in logical replication