OSDN Git Service

Don't include access/tuptoaster.h in bigm_gin.c if PostgreSQL 13 or later.
authorMasaoFujii <masao.fujii@gmail.com>
Mon, 30 Sep 2019 03:49:07 +0000 (12:49 +0900)
committerMasaoFujii <masao.fujii@gmail.com>
Tue, 1 Oct 2019 12:39:06 +0000 (21:39 +0900)
Commit 8b94dab066 in PostgreSQL 13dev split tuptoaster.c into three separate
files and removed tuptoaster.h. This commit makes bigm_gin.c include
tuptoaster.h only in PostgreSQL 12 or before.

This commit is necessary for pg_bigm to work with PostgreSQL 13 or later.

bigm_gin.c

index 7818bf8..dee2ae0 100644 (file)
@@ -21,7 +21,9 @@
 #include "access/relation.h"
 #endif
 #include "access/skey.h"
+#if PG_VERSION_NUM < 130000
 #include "access/tuptoaster.h"
+#endif
 #include "access/xlog.h"
 #if PG_VERSION_NUM > 90500
 #include "catalog/pg_am.h"