Re: Safer hash table initialization macro

Jelte Fennema <postgres@jeltef.nl>

From: "Jelte Fennema-Nio" <postgres@jeltef.nl>
To: "Chao Li" <li.evan.chao@gmail.com>
Cc: "Bertrand Drouvot" <bertranddrouvot.pg@gmail.com>, "Thomas Munro" <thomas.munro@gmail.com>, <pgsql-hackers@lists.postgresql.org>
Date: 2026-04-02T14:20:22Z
Lists: pgsql-hackers

Attachments

On Wed Mar 18, 2026 at 11:52 AM CET, Jelte Fennema-Nio wrote:
> On Sat, 14 Mar 2026 at 14:48, Jelte Fennema-Nio <postgres@jeltef.nl> wrote:
>> Newly attached version that fixes a rebase conclict.
>
> v12 attached builds on top of the patch I suggested in[1] (that patch is
> icluded here as 0000). Also I added some tests for the new macros to the
> test_cplusplusext test module.

Rebased on top of the latest master.

Sadly the new hash_make macros are failing to compile on C++ on MSVC 2019. I'll investigate later what we can do about that.