pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove #include <math.h> where not needed
Date: Thu, 15 Jan 2026 18:20:45 +0000
Message-ID: <E1vgRxc-000eUm-2z@gemulon.postgresql.org> (raw)

Remove #include <math.h> where not needed

Liujinyang reported the one in binaryheap.c, I then found and analyzed
the rest.

For future patches, we require git archaelogical analysis before we
accept patches of this nature.

Co-authored-by: liujinyang <21043272@qq.com>
Co-authored-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/tencent_6B302BFCAF6F010E00AB5C2C0ECB7AA3F205@qq.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/35e3fae738e63f4154814dd51d3806d8d8b7b673

Modified Files
--------------
contrib/btree_gist/btree_numeric.c        | 1 -
contrib/btree_gist/btree_utils_var.c      | 1 -
contrib/intarray/_intbig_gist.c           | 2 --
contrib/ltree/_ltree_gist.c               | 2 --
src/backend/access/heap/vacuumlazy.c      | 2 --
src/backend/access/transam/xlogrecovery.c | 1 -
src/backend/access/transam/xlogwait.c     | 1 -
src/backend/commands/define.c             | 1 -
src/backend/executor/nodeBitmapHeapscan.c | 2 --
src/backend/executor/nodeSubplan.c        | 2 --
src/backend/lib/knapsack.c                | 1 -
src/backend/nodes/readfuncs.c             | 2 --
src/backend/optimizer/geqo/geqo_eval.c    | 1 -
src/backend/optimizer/geqo/geqo_pool.c    | 1 -
src/backend/optimizer/path/indxpath.c     | 2 --
src/backend/optimizer/path/joinpath.c     | 2 --
src/backend/optimizer/plan/createplan.c   | 2 --
src/backend/optimizer/util/pathnode.c     | 2 --
src/backend/statistics/mcv.c              | 2 --
src/backend/utils/adt/numutils.c          | 1 -
src/backend/utils/adt/tid.c               | 1 -
src/common/binaryheap.c                   | 2 --
src/include/utils/date.h                  | 2 --
23 files changed, 36 deletions(-)



Message-ID: <E1vgRxc-000eUm-2z@gemulon.postgresql.org>
Permalink:  ../E1vgRxc-000eUm-2z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vgRxc-000eUm-2z@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: alvherre@kurilemu.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Remove #include <math.h> where not needed
  In-Reply-To: <E1vgRxc-000eUm-2z@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox