| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | zengman <zengman(at)halodbtech(dot)com> |
| Cc: | Álvaro Herrera <alvherre(at)kurilemu(dot)de>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: remove the unneeded header file math.h in binaryheap.c |
| Date: | 2026-01-15 15:16:13 |
| Message-ID: | rskt6xl2blrbfkks6gaeqlkx3smcpizhu632nypr7zht7yppqq@3fub3riwcdyj |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On 2026-01-15 23:08:28 +0800, zengman wrote:
> I removed the <math.h> include from two files `dt_common.c` and `timestamp.c`, and the code compiles successfully in my environment.
> Would you consider adding this to the patch?
Just because removing a platform include file works in some environment is
*NOT* sufficient to remove platform include files. There are a lot of
variations between platforms about when some include files are implicitly
included via other include files. Just removing them because it works on one
platform ends up with more niche operating systems failing to build, which we
may only figure out months or even years down the road.
At the very least you need to figure out why the includes where added and why
that reason is not present anymore.
Greetings,
Andres Freund
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2026-01-15 15:26:51 | Re: remove the unneeded header file math.h in binaryheap.c |
| Previous Message | zengman | 2026-01-15 15:08:28 | Re: remove the unneeded header file math.h in binaryheap.c |