Re: Compilation issues for HASH_STATISTICS and HASH_DEBUG options

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: David Rowley <dgrowleyml@gmail.com>
Cc: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, Tom Lane <tgl@sss.pgh.pa.us>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2025-08-15T05:25:35Z
Lists: pgsql-hackers
On Fri, Aug 15, 2025 at 04:48:10PM +1200, David Rowley wrote:
> Yes, I'm about to push the HASH_STATISTICS one and backpatch to v17.

Thanks.

> I think we should fix and backpatch the HASH_DEBUG one. We can have a
> separate debate on removing it in master only. It's hard to imagine
> anyone objecting to fixing it, so let's just do that for the time
> being.

Sounds good to me.
--
Michael

Commits

  1. Remove HASH_DEBUG output from dynahash.c

  2. Use elog(DEBUG4) for dynahash.c statistics output

  3. Fix invalid format string in HASH_DEBUG code

  4. Fix failing -D HASH_STATISTICS builds

  5. Refactor initial hash lookup in dynahash.c

  6. Remove large fill factor support from dynahash.c.

  7. Remove broken and useless entry-count printing in HASH_DEBUG code.

  8. Partition the freelist for shared dynahash tables.