File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 22
33MODULE_big = pg_pathman
44
5+ # versions of postgresql with declarative partitioning
6+ DECL_CHECK_VERSIONS = 10 11
7+
8+ ifdef USE_PGXS
9+ PG_CONFIG = pg_config
10+ VNUM := $(shell $(PG_CONFIG ) --version | awk '{print $$2}')
11+ ifeq ($(VNUM ) ,$(filter $(VNUM ) , $(DECL_CHECK_VERSIONS ) ) )
12+ EXTRA_REGRESS = pathman_declarative
13+ EXTRA_OBJS = src/declarative.o
14+ endif
15+ endif
16+ include $(PGXS )
17+
518OBJS = src/init.o src/relation_info.o src/utils.o src/partition_filter.o \
619 src/runtime_append.o src/runtime_merge_append.o src/pg_pathman.o src/rangeset.o \
720 src/pl_funcs.o src/pl_range_funcs.o src/pl_hash_funcs.o src/pathman_workers.o \
@@ -60,23 +73,15 @@ REGRESS = pathman_array_qual \
6073 pathman_update_triggers \
6174 pathman_upd_del \
6275 pathman_utility_stmt \
63- pathman_views
64-
76+ pathman_views ${EXTRA_REGRESS}
6577
6678EXTRA_REGRESS_OPTS=--temp-config =$(top_srcdir ) /$(subdir ) /conf.add
6779
6880EXTRA_CLEAN = pg_pathman--$(EXTVERSION ) .sql ./isolation_output
6981
70- DECL_CHECK_VERSIONS = 10 11
71-
7282ifdef USE_PGXS
7383PG_CONFIG = pg_config
7484PGXS := $(shell $(PG_CONFIG ) --pgxs)
75- VNUM := $(shell $(PG_CONFIG ) --version | awk '{print $$2}')
76- ifeq ($(VNUM ) ,$(filter $(VNUM ) , $(DECL_CHECK_VERSIONS ) ) )
77- REGRESS += pathman_declarative
78- OBJS += src/declarative.o
79- endif
8085include $(PGXS )
8186else
8287subdir = contrib/pg_pathman
You can’t perform that action at this time.
0 commit comments