Re: further #include cleanup (IWYU)

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-10-28T09:41:17Z
Lists: pgsql-hackers
On 20.10.24 11:37, Alvaro Herrera wrote:
> On 2024-Oct-20, Peter Eisentraut wrote:
> 
>> diff --git a/contrib/tablefunc/tablefunc.h b/contrib/tablefunc/tablefunc.h
>> index 2009382ce7d..b78030044b5 100644
>> --- a/contrib/tablefunc/tablefunc.h
>> +++ b/contrib/tablefunc/tablefunc.h
>> @@ -34,6 +34,4 @@
>>   #ifndef TABLEFUNC_H
>>   #define TABLEFUNC_H
>>   
>> -#include "fmgr.h"
>> -
>>   #endif							/* TABLEFUNC_H */
> 
> You could as well just delete this file.

I have committed it with the file deleted.




Commits

  1. Remove unused #include's from bin .c files

  2. Remove unused #include's from contrib, pl, test .c files

  3. Remove unused #include's from backend .c files

  4. Replace most usages of ntoh[ls] and hton[sl] with pg_bswap.h.