From: | David Rowley <dgrowleyml(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Compilation issues for HASH_STATISTICS and HASH_DEBUG options |
Date: | 2025-08-18 05:55:33 |
Message-ID: | CAApHDvqJXnQvG8C6A83FiheVgJTWHEPUW39HXgcLyaY3G5fF9A@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, 18 Aug 2025 at 17:06, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>
> On Mon, Aug 18, 2025 at 02:19:06PM +1200, David Rowley wrote:
> > On Mon, 18 Aug 2025 at 13:26, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >> Yeah, it's really quite unclear what the existing HASH_DEBUG printout
> >> is good for. At least in our usage, it doesn't tell you anything
> >> you can't discover from static code analysis. I'm +1 for just
> >> dropping it altogether.
> >
> > I'm starting to lean more towards that myself. I had mostly just been
> > motivated to finding a way to prevent it from existing in a broken
> > state again.
>
> +1.
Ok. I've attached 2 patches. 0001 adjusted the HASH_STATISTICS output
to use DEBUG4 and 0002 removes HASH_DEBUG.
I've purposefully left references to HASH_DEBUG in the "Original
comments" section near the top of dynahash.c. That comment also
references function names that no longer exist.
> > HASH_STATISTICS I can imagine is more useful as that information isn't
> > otherwise recorded anywhere.
>
> By the way, once we have reached a conclusion here, I'll go update one
> of my animals to use what's remaining of the flags, so as this is
> captured in the future.
Sounds good. Thanks.
David
Attachment | Content-Type | Size |
---|---|---|
v2-0001-Use-elog-DEBUG4-for-dynahash.c-statistics-output.patch | application/octet-stream | 5.1 KB |
v2-0002-Remove-HASH_DEBUG-output-from-dynahash.c.patch | application/octet-stream | 1.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Guo | 2025-08-18 06:07:42 | Re: Pathify RHS unique-ification for semijoin planning |
Previous Message | John Naylor | 2025-08-18 05:18:25 | Re: GB18030-2022 Support in PostgreSQL |