mirror of https://github.com/citusdata/citus.git
more Makefile cleanup
parent
ec8afe0a5d
commit
4dfec401ce
6
Makefile
6
Makefile
|
@ -15,6 +15,7 @@ endif
|
||||||
|
|
||||||
MVER = $(firstword $(VER_WORDS))
|
MVER = $(firstword $(VER_WORDS))
|
||||||
|
|
||||||
|
# version >= 12?
|
||||||
ifeq ($(lastword $(sort 12 $(MVER))),$(MVER))
|
ifeq ($(lastword $(sort 12 $(MVER))),$(MVER))
|
||||||
USE_TABLEAM = yes
|
USE_TABLEAM = yes
|
||||||
USE_FDW = yes
|
USE_FDW = yes
|
||||||
|
@ -74,10 +75,7 @@ PG_CONFIG = pg_config
|
||||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||||
include $(PGXS)
|
include $(PGXS)
|
||||||
|
|
||||||
installcheck: remove_cstore_files
|
installcheck:
|
||||||
|
|
||||||
remove_cstore_files:
|
|
||||||
rm -f data/*.cstore data/*.cstore.footer
|
|
||||||
|
|
||||||
reindent:
|
reindent:
|
||||||
citus_indent .
|
citus_indent .
|
||||||
|
|
16
mod.c
16
mod.c
|
@ -16,28 +16,38 @@
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
|
|
||||||
#include "mod.h"
|
#include "mod.h"
|
||||||
#if PG_VERSION_NUM >= 120000
|
|
||||||
|
#ifdef USE_TABLEAM
|
||||||
#include "cstore_tableam.h"
|
#include "cstore_tableam.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_FDW
|
||||||
#include "cstore_fdw.h"
|
#include "cstore_fdw.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
|
||||||
void
|
void
|
||||||
_PG_init(void)
|
_PG_init(void)
|
||||||
{
|
{
|
||||||
#if PG_VERSION_NUM >= 120000
|
#ifdef USE_TABLEAM
|
||||||
cstore_tableam_init();
|
cstore_tableam_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_FDW
|
||||||
cstore_fdw_init();
|
cstore_fdw_init();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_PG_fini(void)
|
_PG_fini(void)
|
||||||
{
|
{
|
||||||
#if PG_VERSION_NUM >= 120000
|
#if USE_TABLEAM
|
||||||
cstore_tableam_finish();
|
cstore_tableam_finish();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_FDW
|
||||||
cstore_fdw_finish();
|
cstore_fdw_finish();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue