forked from postgrespro/pg_pathman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
96 lines (78 loc) · 2.48 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# contrib/pg_pathman/Makefile
MODULE_big = pg_pathman
OBJS = src/init.o src/relation_info.o src/utils.o src/partition_filter.o \
src/runtimeappend.o src/runtime_merge_append.o src/pg_pathman.o src/rangeset.o \
src/pl_funcs.o src/pl_range_funcs.o src/pl_hash_funcs.o src/pathman_workers.o \
src/hooks.o src/nodes_common.o src/xact_handling.o src/utility_stmt_hooking.o \
src/planner_tree_modification.o src/debug_print.o src/partition_creation.o \
src/compat/pg_compat.o src/compat/rowmarks_fix.o \
$(WIN32RES)
ifdef USE_PGXS
override PG_CPPFLAGS += -I$(CURDIR)/src/include
else
override PG_CPPFLAGS += -I$(top_srcdir)/$(subdir)/src/include
endif
EXTENSION = pg_pathman
EXTVERSION = 1.4
DATA_built = pg_pathman--$(EXTVERSION).sql
DATA = pg_pathman--1.0--1.1.sql \
pg_pathman--1.1--1.2.sql \
pg_pathman--1.2--1.3.sql \
pg_pathman--1.3--1.4.sql
PGFILEDESC = "pg_pathman - partitioning tool for PostgreSQL"
REGRESS = pathman_array_qual \
pathman_basic \
pathman_bgw \
pathman_calamity \
pathman_callbacks \
pathman_column_type \
pathman_cte \
pathman_domains \
pathman_dropped_cols \
pathman_expressions \
pathman_foreign_keys \
pathman_gaps \
pathman_inserts \
pathman_interval \
pathman_join_clause \
pathman_lateral \
pathman_mergejoin \
pathman_multilevel \
pathman_only \
pathman_param_upd_del \
pathman_permissions \
pathman_rebuild_deletes \
pathman_rebuild_updates \
pathman_rowmarks \
pathman_runtime_nodes \
pathman_update_trigger \
pathman_upd_del \
pathman_utility_stmt \
pathman_views
EXTRA_REGRESS_OPTS=--temp-config=$(top_srcdir)/$(subdir)/conf.add
EXTRA_CLEAN = pg_pathman--$(EXTVERSION).sql ./isolation_output
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/pg_pathman
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
$(EXTENSION)--$(EXTVERSION).sql: init.sql hash.sql range.sql
cat $^ > $@
ISOLATIONCHECKS=insert_nodes for_update rollback_on_create_partitions
submake-isolation:
$(MAKE) -C $(top_builddir)/src/test/isolation all
isolationcheck: | submake-isolation
$(MKDIR_P) isolation_output
$(pg_isolation_regress_check) \
--temp-config=$(top_srcdir)/$(subdir)/conf.add \
--outputdir=./isolation_output \
$(ISOLATIONCHECKS)
python_tests:
$(MAKE) -C tests/python partitioning_tests
cmocka_tests:
$(MAKE) -C tests/cmocka check