Re: [PATCH] Use direct hash lookup in logicalrep_partmap_invalidate_cb()

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [PATCH] Use direct hash lookup in logicalrep_partmap_invalidate_cb()
Дата
Msg-id aeKnupQt-7iymhTb@paquier.xyz
обсуждение
Ответ на [PATCH] Use direct hash lookup in logicalrep_partmap_invalidate_cb()  (DaeMyung Kang <charsyam@gmail.com>)
Список pgsql-hackers
On Sat, Apr 18, 2026 at 02:44:50AM +0900, DaeMyung Kang wrote:
> LogicalRepPartMap is keyed by the partition's OID, which is assigned
> to entry->relmapentry.localreloid when the entry is populated in
> logicalrep_partition_open().  The invalidation callback therefore
> does not need to iterate over every entry to find the one matching
> the invalidated relation OID; a single hash_search(HASH_FIND) on
> reloid suffices.

At this stage of the release cycle (aka feature freeze is in effect as
of v19), I'd recommend that you add this patch to the next commit
fest, so as this could be considered for v20, whose development should
begin next July.  See [1].

[1]: https://commitfest.postgresql.org/59/
--
Michael

Вложения

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