Skip to content

Commit e4033c2

Browse files
committed
Need to #include pg_am.h directly now to use BTREE_AM_OID.
Due to upstream changes to the index AM API definitions.
1 parent 668e44e commit e4033c2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/repack.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
#include "catalog/dependency.h"
1717
#include "catalog/indexing.h"
1818
#include "catalog/namespace.h"
19+
20+
/*
21+
* utils/rel.h no longer includes pg_am.h as of 9.6, so need to include
22+
* it explicitly.
23+
*/
24+
#if PG_VERSION_NUM >= 90600
25+
#include "catalog/pg_am.h"
26+
#endif
27+
1928
#include "catalog/pg_namespace.h"
2029
#include "catalog/pg_opclass.h"
2130
#include "catalog/pg_type.h"

0 commit comments

Comments
 (0)