Need to #include pg_am.h directly now to use BTREE_AM_OID.

Due to upstream changes to the index AM API definitions.
This commit is contained in:
amit 2016-01-18 20:55:57 +09:00
parent 668e44e256
commit e4033c273e

View File

@ -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"