From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
Cc: | Aleksander Alekseev <aleksander(at)tigerdata(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: [PATCH] Remove unused #include's in src/backend/commands/* |
Date: | 2025-10-08 21:38:26 |
Message-ID: | sogs2tog76fwoz6qzpsshrfw4igpimuc73mr5ddtt73txm2ozj@3vh6dfq4lqko |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
On 2025-10-08 16:31:13 -0500, Nathan Bossart wrote:
> On Wed, Oct 08, 2025 at 09:41:30PM +0300, Aleksander Alekseev wrote:
> > The main problem here is that clangd is a language server, which means
> > I see errors reported by it when I open a particular file in a text
> > editor. To go manually over ~2500 .c/.h files we have and then see
> > what will break on CI because of an #ifdef (as it was with the patch
> > v1) doesn't strike me as a great idea :)
>
> Why not use IWYU as recommended in src/tools/pginclude/README? I gave that
> a try and it didn't take very long for src/.
I've not rechecked today, but the last time I did, iwyu needed a lot of adult
supervision with the current amount of annotations. If we did all the
necessary annotations and caught up with all the things it suggests it should
be easier, but as-is it's imo just usable as an idea-giver for manually
written patches.
Greetings,
Andres Freund
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2025-10-08 21:39:48 | Re: [PATCH] Proposal: Allow reads to proceed during FK/trigger drops by reducing relation-level lock from AccessExclusive to ShareRowExclusive |
Previous Message | Jacob Champion | 2025-10-08 21:37:03 | Re: Thoughts on a "global" client configuration? |