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
#include "fmgr.h"
/* avoid including primnodes.h here */
-typedef struct RangeVar RangeVar;
+struct RangeVar;
struct StatsArgInfo
{
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,