1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-27 00:12:01 +03:00

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
This commit is contained in:
Nathan Bossart
2025-10-15 13:14:00 -05:00
parent c8af5019be
commit 15d7dded0e

View File

@@ -16,7 +16,7 @@
#include "fmgr.h" #include "fmgr.h"
/* avoid including primnodes.h here */ /* avoid including primnodes.h here */
typedef struct RangeVar RangeVar; struct RangeVar;
struct StatsArgInfo struct StatsArgInfo
{ {
@@ -33,7 +33,7 @@ extern bool stats_check_arg_pair(FunctionCallInfo fcinfo,
struct StatsArgInfo *arginfo, struct StatsArgInfo *arginfo,
int argnum1, int argnum2); int argnum1, int argnum2);
extern void RangeVarCallbackForStats(const RangeVar *relation, extern void RangeVarCallbackForStats(const struct RangeVar *relation,
Oid relId, Oid oldRelid, void *arg); Oid relId, Oid oldRelid, void *arg);
extern bool stats_fill_fcinfo_from_arg_pairs(FunctionCallInfo pairs_fcinfo, extern bool stats_fill_fcinfo_from_arg_pairs(FunctionCallInfo pairs_fcinfo,