Re: Fix PrivateRefCount hash table key size - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Fix PrivateRefCount hash table key size
Date
Msg-id aTG25GIkEmyO1wKD@nathan
Whole thread Raw
In response to Fix PrivateRefCount hash table key size  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
List pgsql-hackers
On Tue, Dec 02, 2025 at 02:43:25PM +0000, Bertrand Drouvot wrote:
> -    hash_ctl.keysize = sizeof(int32);
> +    hash_ctl.keysize = sizeof(Buffer);
>      hash_ctl.entrysize = sizeof(PrivateRefCountEntry);

LGTM.  Appears to be a minor oversight in commit 4b4b680c3d, but it's of no
consequence because Buffer has been a signed 32-bit integer since commit
bdadc9bf1c.  Will go commit this.

-- 
nathan



pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: Segmentation fault on proc exit after dshash_find_or_insert
Next
From: Sami Imseih
Date:
Subject: Re: Proposal: Add a callback data parameter to GetNamedDSMSegment