From c3960cd118847c1acce91c314d4c62aba0302b6f Mon Sep 17 00:00:00 2001 From: bwtakacy Date: Fri, 9 Oct 2015 13:03:56 +0900 Subject: [PATCH] Include a new header file to build with PostgreSQL 9.5 By commit 7b1c2a0f2066672b24f6257ec9b8d78a1754f494 in PostgreSQL, builtins.h is splitted to a new header file ruleutils.h. The usage of pg_get_indexdef_string in lib/repack.c is affected. --- lib/repack.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/repack.c b/lib/repack.c index cce90ea..e48aab3 100644 --- a/lib/repack.c +++ b/lib/repack.c @@ -36,6 +36,11 @@ #include "access/htup_details.h" #endif +/* builtins.h was reorganized for 9.5, so now we need this header */ +#if PG_VERSION_NUM >= 90500 +#include "utils/ruleutils.h" +#endif + PG_MODULE_MAGIC; extern Datum PGUT_EXPORT repack_version(PG_FUNCTION_ARGS);