postgres.git / summary / log / commit / refs
commit 15d7dded0e930b5781b2c0e591c1b45eb078a248
Author: Nathan Bossart <nathan@postgresql.org>
Date: Wed Oct 15 18:14:00 2025 +0000
First released in: 18.1
Fix redefinition of typedef RangeVar.
Commit c8af5019be added a forward declaration for this typedef that
caused redefinitions, which are not valid in C99.
Per buildfarm members longfin and sifaka.
Discussion: https://postgr.es/m/aO_fzfnKVXMd_RUM%40nathan
Backpatch-through: 18 only
src/include/statistics/stat_utils.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/include/statistics/stat_utils.h b/src/include/statistics/stat_utils.h
index f41b181d4d3..4283d2c4053 100644
--- a/src/include/statistics/stat_utils.h
+++ b/src/include/statistics/stat_utils.h
@@ -16,7 +16,7 @@
#include "fmgr.h"
/* avoid including primnodes.h here */
-typedef struct RangeVar RangeVar;
+struct RangeVar;
struct StatsArgInfo
{
@@ -33,7 +33,7 @@ extern bool stats_check_arg_pair(FunctionCallInfo fcinfo,
struct StatsArgInfo *arginfo,
int argnum1, int argnum2);
-extern void RangeVarCallbackForStats(const RangeVar *relation,
+extern void RangeVarCallbackForStats(const struct RangeVar *relation,
Oid relId, Oid oldRelid, void *arg);
extern bool stats_fill_fcinfo_from_arg_pairs(FunctionCallInfo pairs_fcinfo,
[parent: c8af5019bee5]