Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactoring#7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ildus merged 16 commits intopostgrespro:masterfromCherkashinSergey:refactoring
Oct 25, 2018
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
16 commits
Select commitHold shift + click to select a range
25f0e2c
Fix runtime_explain patch
Sep 27, 2016
c21c492
Remove trace capability for 9.6, fix README adding support for parall…
Oct 3, 2016
1464f74
Fix race condition and derived segmentation fault under frequent call…
maksm90Dec 9, 2016
5a630b6
Fix custom_signal.patch
maksm90Apr 20, 2017
1efd9f9
Fix README
maksm90Feb 27, 2018
ca97933
Add .gitignore
maksm90Feb 27, 2018
138323b
Merged versions 9.6 and 10
CherkashinSergeySep 3, 2018
7c1146e
fix typo
CherkashinSergeySep 18, 2018
1a7e152
Python tests without 'executor_step' procedure
CherkashinSergeySep 18, 2018
dbd2870
Merge branch 'master' into refactoring
CherkashinSergeySep 18, 2018
11b173f
Change tests order
CherkashinSergeySep 22, 2018
56817ad
Add patches to 11 version
CherkashinSergeySep 22, 2018
c436d7f
Fix typos in README.md
CherkashinSergeyOct 22, 2018
9b73f40
Version 1.1
CherkashinSergeyOct 22, 2018
82282d2
Add Travis CI support
CherkashinSergeyOct 25, 2018
f550b4e
README.md: Now there is one branch for all PG versions
CherkashinSergeyOct 25, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions.dockerignore
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
*.gcno
*.gcda
*.gcov
*.so
*.o
6 changes: 6 additions & 0 deletions.gitignore
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
*.o
*.so
*.swp
*.pyc
*.gcda
*.gcno
*.gcov
pg_query_state--*.sql
cscope.out
tags
Dockerfile
31 changes: 31 additions & 0 deletions.travis.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
sudo: required

language: c

services:
- docker

install:
- ./mk_dockerfile.sh
- docker-compose build

script:
- docker-compose run $(bash <(curl -s https://codecov.io/env)) tests

notifications:
email:
on_success: change
on_failure: always

env:
- PG_VERSION=11 LEVEL=hardcore
- PG_VERSION=11
- PG_VERSION=10 LEVEL=hardcore
- PG_VERSION=10
- PG_VERSION=9.6 LEVEL=hardcore
- PG_VERSION=9.6

matrix:
allow_failures:
- env: PG_VERSION=10 LEVEL=nightmare
- env: PG_VERSION=9.6 LEVEL=nightmare
38 changes: 38 additions & 0 deletionsDockerfile.tmpl
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
FROM postgres:${PG_VERSION}-alpine

# Install dependencies
RUN apk add --no-cache \
openssl curl \
perl perl-ipc-run \
make musl-dev gcc bison flex coreutils \
zlib-dev libedit-dev \
clang clang-analyzer \
python2 python2-dev py2-virtualenv;


# Install fresh valgrind
RUN apk add valgrind \
--update-cache \
--repository http://dl-3.alpinelinux.org/alpine/edge/main;

# Environment
ENV LANG=C.UTF-8 PGDATA=/pg/data

# Make directories
RUNmkdir -p ${PGDATA} && \
mkdir -p /pg/testdir

# Grant privileges
RUNchown postgres:postgres ${PGDATA} && \
chown postgres:postgres /pg/testdir && \
chmod -R a+rwx /usr/local/lib/postgresql && \
chmod a+rwx /usr/local/share/postgresql/extension

COPY run_tests.sh /run.sh
RUN chmod 755 /run.sh

ADD . /pg/testdir
WORKDIR /pg/testdir

USER postgres
ENTRYPOINT LEVEL=${LEVEL} /run.sh
11 changes: 8 additions & 3 deletionsMakefile
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,11 +3,13 @@
MODULE_big = pg_query_state
OBJS = pg_query_state.o signal_handler.o $(WIN32RES)
EXTENSION = pg_query_state
EXTVERSION = 1.0
DATA = $(EXTENSION)--$(EXTVERSION).sql
EXTVERSION = 1.1
DATA = pg_query_state--1.0--1.1.sql
DATA_built = $(EXTENSION)--$(EXTVERSION).sql
PGFILEDESC = "pg_query_state - facility to track progress of plan execution"

EXTRA_CLEAN = ./isolation_output
EXTRA_CLEAN = ./isolation_output $(EXTENSION)--$(EXTVERSION).sql \
Dockerfile ./tests/*.pyc

ifdef USE_PGXS
PG_CONFIG = pg_config
Expand All@@ -20,6 +22,9 @@ include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif

$(EXTENSION)--$(EXTVERSION).sql: init.sql
cat $^ > $@

check: isolationcheck

ISOLATIONCHECKS=corner_cases
Expand Down
356 changes: 176 additions & 180 deletionsREADME.md
View file
Open in desktop

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletionsdocker-compose.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
tests:
build: .
66 changes: 0 additions & 66 deletionsexecutor_hooks.patch
View file
Open in desktop

This file was deleted.

8 changes: 0 additions & 8 deletionspg_query_state--1.0.sql → init.sql
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,11 +15,3 @@ CREATE FUNCTION pg_query_state(pid integer
, leader_pid integer)
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT VOLATILE;

CREATE FUNCTION executor_step(pid integer) RETURNS VOID
AS 'MODULE_PATHNAME'
LANGUAGE C VOLATILE;

CREATE FUNCTION executor_continue(pid integer) RETURNS VOID
AS 'MODULE_PATHNAME'
LANGUAGE C VOLATILE;
16 changes: 16 additions & 0 deletionsmk_dockerfile.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
if [ -z ${PG_VERSION+x} ]; then
echo PG_VERSION is not set!
exit 1
fi

if [ -z ${LEVEL+x} ]; then
LEVEL=scan-build
fi

echo PG_VERSION=${PG_VERSION}
echo LEVEL=${LEVEL}

sed \
-e 's/${PG_VERSION}/'${PG_VERSION}/g \
-e 's/${LEVEL}/'${LEVEL}/g \
Dockerfile.tmpl > Dockerfile
Loading

[8]ページ先頭

©2009-2025 Movatter.jp