|
2 | 2 |
|
3 | 3 | MODULE_big = pg_pathman
|
4 | 4 |
|
| 5 | +# versions of postgresql with declarative partitioning |
| 6 | +DECL_CHECK_VERSIONS = 10 11 |
| 7 | + |
| 8 | +ifdefUSE_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 | + |
5 | 18 | OBJS = src/init.o src/relation_info.o src/utils.o src/partition_filter.o\
|
6 | 19 | src/runtime_append.o src/runtime_merge_append.o src/pg_pathman.o src/rangeset.o\
|
7 | 20 | 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 \
|
60 | 73 | pathman_update_triggers\
|
61 | 74 | pathman_upd_del\
|
62 | 75 | pathman_utility_stmt\
|
63 |
| - pathman_views |
64 |
| - |
| 76 | + pathman_views ${EXTRA_REGRESS} |
65 | 77 |
|
66 | 78 | EXTRA_REGRESS_OPTS=--temp-config=$(top_srcdir)/$(subdir)/conf.add
|
67 | 79 |
|
68 | 80 | EXTRA_CLEAN = pg_pathman--$(EXTVERSION).sql ./isolation_output
|
69 | 81 |
|
70 |
| -DECL_CHECK_VERSIONS = 10 11 |
71 |
| - |
72 | 82 | ifdefUSE_PGXS
|
73 | 83 | PG_CONFIG = pg_config
|
74 | 84 | PGXS :=$(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 |
80 | 85 | include$(PGXS)
|
81 | 86 | else
|
82 | 87 | subdir = contrib/pg_pathman
|
|