Re: type cache cleanup improvements

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: type cache cleanup improvements
Дата
Msg-id ZfE-C_o0I1lhAnMw@paquier.xyz
обсуждение исходный текст
Ответ на Re: type cache cleanup improvements  (Teodor Sigaev <teodor@sigaev.ru>)
Ответы Re: type cache cleanup improvements  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-hackers
On Tue, Mar 12, 2024 at 06:55:41PM +0300, Teodor Sigaev wrote:
> Playing around I found one more place which could easily modified with
> hash_seq_init_with_hash_value() call.

I think that this patch should be split for clarity, as there are a
few things that are independently useful.  I guess something like
that:
- Introduction of hash_initial_lookup(), that simplifies 3 places of
dynahash.c where the same code is used.  The routine should be
inlined.
- The split in hash_seq_search to force a different type of search is
weird, complicating the dynahash interface by hiding what seems like a
search mode.  Rather than hasHashvalue that's hidden in the middle of
HASH_SEQ_STATUS, could it be better to have an entirely different API
for the search?  That should be a patch on its own, as well.
- The typcache changes.
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Smith
Дата:
Сообщение: Re: Improve the connection failure error messages
Следующее
От: Andrei Lepikhov
Дата:
Сообщение: Re: POC, WIP: OR-clause support for indexes