1
0
mirror of https://github.com/postgres/postgres.git synced 2026-01-26 09:41:40 +03:00

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
This commit is contained in:
Álvaro Herrera
2026-01-15 19:09:47 +01:00
parent 8077649907
commit 35e3fae738
23 changed files with 0 additions and 36 deletions

View File

@@ -3,7 +3,6 @@
*/
#include "postgres.h"
#include <math.h>
#include <float.h>
#include "btree_gist.h"

View File

@@ -3,7 +3,6 @@
*/
#include "postgres.h"
#include <math.h>
#include <limits.h>
#include <float.h>

View File

@@ -3,8 +3,6 @@
*/
#include "postgres.h"
#include <math.h>
#include "_int.h"
#include "access/gist.h"
#include "access/reloptions.h"

View File

@@ -7,8 +7,6 @@
*/
#include "postgres.h"
#include <math.h>
#include "access/gist.h"
#include "access/reloptions.h"
#include "access/stratnum.h"

View File

@@ -129,8 +129,6 @@
*/
#include "postgres.h"
#include <math.h>
#include "access/genam.h"
#include "access/heapam.h"
#include "access/htup_details.h"

View File

@@ -25,7 +25,6 @@
#include "postgres.h"
#include <ctype.h>
#include <math.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/time.h>

View File

@@ -47,7 +47,6 @@
#include "postgres.h"
#include <float.h>
#include <math.h>
#include "access/xlog.h"
#include "access/xlogrecovery.h"

View File

@@ -20,7 +20,6 @@
#include "postgres.h"
#include <ctype.h>
#include <math.h>
#include "catalog/namespace.h"
#include "commands/defrem.h"

View File

@@ -35,8 +35,6 @@
*/
#include "postgres.h"
#include <math.h>
#include "access/relscan.h"
#include "access/tableam.h"
#include "access/visibilitymap.h"

View File

@@ -26,8 +26,6 @@
*/
#include "postgres.h"
#include <math.h>
#include "access/htup_details.h"
#include "executor/executor.h"
#include "executor/nodeSubplan.h"

View File

@@ -24,7 +24,6 @@
*/
#include "postgres.h"
#include <math.h>
#include <limits.h>
#include "lib/knapsack.h"

View File

@@ -26,8 +26,6 @@
*/
#include "postgres.h"
#include <math.h>
#include "miscadmin.h"
#include "nodes/bitmapset.h"
#include "nodes/readfuncs.h"

View File

@@ -23,7 +23,6 @@
#include <float.h>
#include <limits.h>
#include <math.h>
#include "optimizer/geqo.h"
#include "optimizer/joininfo.h"

View File

@@ -25,7 +25,6 @@
#include <float.h>
#include <limits.h>
#include <math.h>
#include "optimizer/geqo_copy.h"
#include "optimizer/geqo_pool.h"

View File

@@ -15,8 +15,6 @@
*/
#include "postgres.h"
#include <math.h>
#include "access/stratnum.h"
#include "access/sysattr.h"
#include "access/transam.h"

View File

@@ -14,8 +14,6 @@
*/
#include "postgres.h"
#include <math.h>
#include "executor/executor.h"
#include "foreign/fdwapi.h"
#include "nodes/nodeFuncs.h"

View File

@@ -16,8 +16,6 @@
*/
#include "postgres.h"
#include <math.h>
#include "access/sysattr.h"
#include "catalog/pg_class.h"
#include "foreign/fdwapi.h"

View File

@@ -14,8 +14,6 @@
*/
#include "postgres.h"
#include <math.h>
#include "access/htup_details.h"
#include "executor/nodeSetOp.h"
#include "foreign/fdwapi.h"

View File

@@ -14,8 +14,6 @@
*/
#include "postgres.h"
#include <math.h>
#include "access/htup_details.h"
#include "catalog/pg_statistic_ext.h"
#include "catalog/pg_statistic_ext_data.h"

View File

@@ -14,7 +14,6 @@
*/
#include "postgres.h"
#include <math.h>
#include <limits.h>
#include <ctype.h>

View File

@@ -17,7 +17,6 @@
*/
#include "postgres.h"
#include <math.h>
#include <limits.h>
#include "access/sysattr.h"

View File

@@ -17,8 +17,6 @@
#include "postgres.h"
#endif
#include <math.h>
#ifdef FRONTEND
#include "common/logging.h"
#endif

View File

@@ -14,8 +14,6 @@
#ifndef DATE_H
#define DATE_H
#include <math.h>
#include "datatype/timestamp.h"
#include "fmgr.h"
#include "pgtime.h"