| From: | liujinyang <21043272(at)qq(dot)com> |
|---|---|
| To: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
| Cc: | 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 07:58:36 |
| Message-ID: | tencent_5803EF30239CA30F07CE1A4B59CC08AB7A05@qq.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Alvora,
thanks for your review.
So wha't the next should I do for commit it, because this is my first patch.
Best Regards
liujinyang
原始邮件
发件人:Álvaro Herrera <alvherre(at)kurilemu(dot)de>
发件时间:2026年1月14日 01:18
收件人:liujinyang <21043272(at)qq(dot)com>
抄送:pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
主题:Re: remove the unneeded header file math.h in binaryheap.c
On 2026-Jan-13, liujinyang wrote:
> Hi Hackers,
>
> I found in file binaryheap.c, file "math.h" was included, but it is uncessary, so I removed it&nbsp;
> and filing a patch to address the issue.
Fun. This was already unnecessary at commit 7a2fe9bd0371 which
introduced the file. It seems Abhijit had that include in his first
version [1] because he was using floor(). Robert rewrote it later [2]
and replaced that with straight arithmetic, making the include
unnecessary, but forgot to remove it.
[1] https://postgr.es/m/20121114131112.GA27771@toroid.org
[2] https://postgr.es/m/CA%2BTgmobvR7XW9fjj2RNY7sKK-VAG5nahfai_zV51rHVLDNvaBg%40mail.gmail.com
--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Oleg Tselebrovskiy | 2026-01-15 08:03:59 | Re: Proposal for enabling auto-vectorization for checksum calculations |
| Previous Message | Dmitry Dolgov | 2026-01-15 07:48:40 | Re: [[BUG] pg_stat_statements crashes with var and non-var expressions in IN clause |