From e4033c273e40a2f3a520b725b4a744b737d6108c Mon Sep 17 00:00:00 2001 From: amit Date: Mon, 18 Jan 2016 20:55:57 +0900 Subject: [PATCH] Need to #include pg_am.h directly now to use BTREE_AM_OID. Due to upstream changes to the index AM API definitions. --- lib/repack.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/repack.c b/lib/repack.c index ede7ebc..a79449c 100644 --- a/lib/repack.c +++ b/lib/repack.c @@ -16,6 +16,15 @@ #include "catalog/dependency.h" #include "catalog/indexing.h" #include "catalog/namespace.h" + +/* + * utils/rel.h no longer includes pg_am.h as of 9.6, so need to include + * it explicitly. + */ +#if PG_VERSION_NUM >= 90600 +#include "catalog/pg_am.h" +#endif + #include "catalog/pg_namespace.h" #include "catalog/pg_opclass.h" #include "catalog/pg_type.h"