Re: Safer hash table initialization macro

From: "Jelte Fennema-Nio" <postgres(at)jeltef(dot)nl>
To: "Chao Li" <li(dot)evan(dot)chao(at)gmail(dot)com>
Cc: "Bertrand Drouvot" <bertranddrouvot(dot)pg(at)gmail(dot)com>, "Thomas Munro" <thomas(dot)munro(at)gmail(dot)com>, <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Safer hash table initialization macro
Date: 2026-03-18 10:52:02
Message-ID: DH5UNK64ZM0Y.2FO80W0JGCO52@jeltef.nl
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, 14 Mar 2026 at 14:48, Jelte Fennema-Nio <postgres(at)jeltef(dot)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.

[1] https://www.postgresql.org/message-id/CA+hUKGL7trhWiJ4qxpksBztMMTWDyPnP1QN+Lq341V7QL775DA@mail.gmail.com

Attachment Content-Type Size
v12-0000-Replace-__builtin_types_compatible_p-with-_Gener.patch text/x-patch 11.2 KB
v12-0001-Add-hash_make-macros.patch text/x-patch 17.1 KB
v12-0002-Add-foreach_hash-macro.patch text/x-patch 4.5 KB
v12-0003-Use-hash_make-macros-throughout-the-codebase.patch text/x-patch 96.3 KB
v12-0004-Use-foreach_hash-macro-throughout-the-codebase.patch text/x-patch 77.0 KB
v12-0005-Inline-functions-that-have-now-become-trivial.patch text/x-patch 4.5 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2026-03-18 10:56:24 Re: [PATCH] Add `headerscheck` run_target to meson
Previous Message Alexander Kuzmenkov 2026-03-18 10:42:53 Re: Fix uninitialized xl_running_xacts padding