Re: [PATCH] Use direct hash lookup in logicalrep_partmap_invalidate_cb() - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [PATCH] Use direct hash lookup in logicalrep_partmap_invalidate_cb()
Date
Msg-id aeKnupQt-7iymhTb@paquier.xyz
Whole thread
In response to [PATCH] Use direct hash lookup in logicalrep_partmap_invalidate_cb()  (DaeMyung Kang <charsyam@gmail.com>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PATCH] Compressed TOAST data corruption with REPACK CONCURRENTLY
Next
From: Michael Paquier
Date:
Subject: Re: Heads Up: cirrus-ci is shutting down June 1st