diff --git a/mod.c b/mod.c index 4268126e3..cd4072e25 100644 --- a/mod.c +++ b/mod.c @@ -16,7 +16,9 @@ #include "fmgr.h" #include "mod.h" +#if PG_VERSION_NUM >= 120000 #include "cstore_tableam.h" +#endif #include "cstore_fdw.h" PG_MODULE_MAGIC; @@ -24,7 +26,9 @@ PG_MODULE_MAGIC; void _PG_init(void) { +#if PG_VERSION_NUM >= 120000 cstore_tableam_init(); +#endif cstore_fdw_init(); } @@ -32,6 +36,8 @@ _PG_init(void) void _PG_fini(void) { +#if PG_VERSION_NUM >= 120000 cstore_tableam_finish(); +#endif cstore_fdw_finish(); }