Re: [PATCH] Remove unused #include's in src/backend/commands/*
Aleksander Alekseev <aleksander@tigerdata.com>
From: Aleksander Alekseev <aleksander@tigerdata.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Nathan Bossart <nathandbossart@gmail.com>,
Andres Freund <andres@anarazel.de>
Date: 2025-10-09T10:21:57Z
Lists: pgsql-hackers
Hi, > > 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. OK, I tried include-what-you-use with a little post-processing script and the scope of work seems reasonable. I will submit the updated patch shortly. -- Best regards, Aleksander Alekseev