fixup mod.c

merge-cstore-pykello
Jeff Davis 2020-09-15 19:06:15 -07:00
parent a3b513167c
commit ada9da609e
1 changed files with 6 additions and 0 deletions

6
mod.c
View File

@ -16,7 +16,9 @@
#include "fmgr.h" #include "fmgr.h"
#include "mod.h" #include "mod.h"
#if PG_VERSION_NUM >= 120000
#include "cstore_tableam.h" #include "cstore_tableam.h"
#endif
#include "cstore_fdw.h" #include "cstore_fdw.h"
PG_MODULE_MAGIC; PG_MODULE_MAGIC;
@ -24,7 +26,9 @@ PG_MODULE_MAGIC;
void void
_PG_init(void) _PG_init(void)
{ {
#if PG_VERSION_NUM >= 120000
cstore_tableam_init(); cstore_tableam_init();
#endif
cstore_fdw_init(); cstore_fdw_init();
} }
@ -32,6 +36,8 @@ _PG_init(void)
void void
_PG_fini(void) _PG_fini(void)
{ {
#if PG_VERSION_NUM >= 120000
cstore_tableam_finish(); cstore_tableam_finish();
#endif
cstore_fdw_finish(); cstore_fdw_finish();
} }