Skip to content

Commit affbc84

Browse files
committed
Add 'contrib/pg_pathman/' from commit 'e678c3e9e9b126d804b6097ede5c96e77240e711'
git-subtree-dir: contrib/pg_pathman git-subtree-mainline: b7375e0 git-subtree-split: e678c3e
2 parents b7375e0 + e678c3e commit affbc84

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+17765
-0
lines changed

contrib/pg_pathman/.gitignore

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

contrib/pg_pathman/.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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.6 CHECK_CODE=true
18+
- PGVERSION=9.6 CHECK_CODE=false
19+
- PGVERSION=9.5 CHECK_CODE=true
20+
- PGVERSION=9.5 CHECK_CODE=false
21+
22+
script: bash ./travis/pg-travis-test.sh

contrib/pg_pathman/Makefile

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

0 commit comments

Comments
 (0)