Skip to content

Commit a799372

Browse files
committed
Add 'contrib/pg_pathman/' from commit 'f52d9981bf7256e68907b9b8ed75b67129730d45'
git-subtree-dir: contrib/pg_pathman git-subtree-mainline: f1da429 git-subtree-split: f52d998
2 parents f1da429 + f52d998 commit a799372

35 files changed

+12641
-0
lines changed

contrib/pg_pathman/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.deps
2+
results/pg_pathman.out
3+
regression.diffs
4+
regression.out
5+
*.o
6+
*.so
7+
pg_pathman--*.sql

contrib/pg_pathman/.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
os:
2+
- linux
3+
4+
sudo: required
5+
dist: trusty
6+
7+
language: c
8+
9+
compiler:
10+
- clang
11+
- gcc
12+
13+
before_install:
14+
- sudo sh ./travis/apt.postgresql.org.sh
15+
16+
env:
17+
- PGVERSION=9.5 CHECK_CODE=true
18+
- PGVERSION=9.5 CHECK_CODE=false
19+
20+
script: bash ./travis/pg-travis-test.sh

contrib/pg_pathman/Makefile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# contrib/pg_pathman/Makefile
2+
3+
MODULE_big = pg_pathman
4+
OBJS = src/init.o src/utils.o src/runtimeappend.o src/runtime_merge_append.o src/pg_pathman.o src/dsm_array.o \
5+
src/rangeset.o src/pl_funcs.o src/worker.o src/hooks.o src/nodes_common.o $(WIN32RES)
6+
7+
EXTENSION = pg_pathman
8+
EXTVERSION = 0.1
9+
DATA_built = $(EXTENSION)--$(EXTVERSION).sql
10+
PGFILEDESC = "pg_pathman - partitioning tool"
11+
12+
REGRESS = pg_pathman
13+
EXTRA_REGRESS_OPTS=--temp-config=$(top_srcdir)/$(subdir)/conf.add
14+
EXTRA_CLEAN = $(EXTENSION)--$(EXTVERSION).sql ./isolation_output
15+
16+
ifdef USE_PGXS
17+
PG_CONFIG = pg_config
18+
PGXS := $(shell $(PG_CONFIG) --pgxs)
19+
include $(PGXS)
20+
else
21+
subdir = contrib/pg_pathman
22+
top_builddir = ../..
23+
include $(top_builddir)/src/Makefile.global
24+
include $(top_srcdir)/contrib/contrib-global.mk
25+
endif
26+
27+
$(EXTENSION)--$(EXTVERSION).sql: init.sql hash.sql range.sql
28+
cat $^ > $@
29+
30+
ISOLATIONCHECKS=insert_trigger rollback_on_create_partitions
31+
32+
submake-isolation:
33+
$(MAKE) -C $(top_builddir)/src/test/isolation all
34+
35+
isolationcheck: | submake-isolation
36+
$(MKDIR_P) isolation_output
37+
$(pg_isolation_regress_check) \
38+
--temp-config=$(top_srcdir)/$(subdir)/conf.add \
39+
--outputdir=./isolation_output \
40+
$(ISOLATIONCHECKS)

0 commit comments

Comments
 (0)