postgres.git / summary / log / commit / refs
commit c768637d6c29ec31438d77520fa4de37c95a78cd
Author: Michael Paquier <michael@paquier.xyz>
Date: Thu Jul 02 06:06:12 2026 +0000
First released in: 17.11, 18.6
Fix redefinition of typedef Node in numeric.h
Commit 84001a04d552 has added a forward declaration of Node, something
not allowed in C99.
Per buildfarm members longfin and sifaka.
Discussion: https://postgr.es/m/akXt_WYx0dgdH6rf@paquier.xyz
Backpatch-through: 17-18
src/include/utils/numeric.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/include/utils/numeric.h b/src/include/utils/numeric.h
index 264536d4e57..09bb9df551e 100644
--- a/src/include/utils/numeric.h
+++ b/src/include/utils/numeric.h
@@ -18,7 +18,7 @@
#include "fmgr.h"
/* forward declaration to avoid node.h include */
-typedef struct Node Node;
+struct Node;
/*
* Limits on the precision and scale specifiable in a NUMERIC typmod. The
@@ -107,7 +107,7 @@ extern Numeric numeric_mod_opt_error(Numeric num1, Numeric num2,
extern int32 numeric_int4_opt_error(Numeric num, bool *have_error);
extern int64 numeric_int8_opt_error(Numeric num, bool *have_error);
extern int32 make_numeric_typmod_safe(int32 precision, int32 scale,
- Node *escontext);
+ struct Node *escontext);
extern Numeric random_numeric(pg_prng_state *state,
Numeric rmin, Numeric rmax);
[parent: ab35b8d25286]