File tree 6 files changed +97
-5
lines changed
6 files changed +97
-5
lines changed Original file line number Diff line number Diff line change 95
95
psql -c "CREATE SCHEMA partman;"
96
96
psql -c "CREATE EXTENSION pg_partman SCHEMA partman;"
97
97
98
+ echo "Test HypoPG Extension"
99
+ psql -c "CREATE EXTENSION hypopg;"
100
+ psql -c "CREATE TABLE hypo AS SELECT id, 'line ' || id AS val FROM generate_series(1,10000) id;"
101
+ psql -c "EXPLAIN SELECT * FROM hypo WHERE id = 1;"
98
102
break
99
103
fi
100
104
sleep 1
Original file line number Diff line number Diff line change @@ -390,4 +390,40 @@ RUN set -e \
390
390
&& cd / \
391
391
&& rm /tmp/pg_partman.tar.gz \
392
392
&& rm -rf /tmp/pg_partman \
393
- && apk del .pg_partman-deps .pg_partman-build-deps
393
+ && apk del .pg_partman-deps .pg_partman-build-deps
394
+
395
+
396
+ # Adding hypo_pg
397
+ ARG HYPOPG_VERSION
398
+
399
+ RUN set -ex \
400
+ && cd /tmp\
401
+ && apk add --no-cache --virtual .hypopg-deps \
402
+ ca-certificates \
403
+ openssl \
404
+ tar \
405
+ && apk add --no-cache --virtual .hypopg-build-deps \
406
+ autoconf \
407
+ automake \
408
+ g++ \
409
+ clang15 \
410
+ llvm15 \
411
+ libtool \
412
+ libxml2-dev \
413
+ make \
414
+ perl \
415
+ && wget -O hypopg.tar.gz "https://github.com/HypoPG/hypopg/archive/refs/tags/${HYPOPG_VERSION}.tar.gz" \
416
+ && mkdir -p /tmp/hypopg \
417
+ && tar \
418
+ --extract \
419
+ --file hypopg.tar.gz \
420
+ --directory /tmp/hypopg \
421
+ --strip-components 1 \
422
+ && cd /tmp/hypopg \
423
+ && make \
424
+ && make install \
425
+ # clean
426
+ && cd / \
427
+ && rm /tmp/hypopg.tar.gz \
428
+ && rm -rf /tmp/hypopg \
429
+ && apk del .hypopg-deps .hypopg-build-deps
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ PG_AUTO_FAILOVER_VERSION=2.1
13
13
POSTGRES_HLL_VERSION =2.18
14
14
PG_JOBMON_VERSION =1.4.1
15
15
PG_PARTMAN_VERSION =5.0.1
16
+ HYPOPG_VERSION =1.4.0
16
17
PREV_TS_VERSION =$(shell wget --quiet -O - https://raw.githubusercontent.com/timescale/timescaledb/${TS_VERSION}/version.config | grep update_from_version | sed -e 's!update_from_version = !!')
17
18
PREV_TS_IMAGE ="timescale/timescaledb:$(PREV_TS_VERSION ) -pg$(PG_VER_NUMBER )$(PREV_EXTRA ) "
18
19
PREV_IMAGE =$(shell if docker pull $(PREV_TS_IMAGE ) >/dev/null; then echo "$(PREV_TS_IMAGE ) "; else echo "postgres:$(PG_VER_NUMBER ) -alpine"; fi )
@@ -42,8 +43,8 @@ DOCKER_BUILD_ARGS = --build-arg TS_VERSION=$(TS_VERSION) \
42
43
--build-arg PG_AUTO_FAILOVER_VERSION=$(PG_AUTO_FAILOVER_VERSION ) \
43
44
--build-arg POSTGRES_HLL_VERSION=$(POSTGRES_HLL_VERSION ) \
44
45
--build-arg PG_JOBMON_VERSION=$(PG_JOBMON_VERSION ) \
45
- --build-arg PG_PARTMAN_VERSION=$(PG_PARTMAN_VERSION )
46
-
46
+ --build-arg PG_PARTMAN_VERSION=$(PG_PARTMAN_VERSION ) \
47
+ --build-arg HYPOPG_VERSION= $( HYPOPG_VERSION )
47
48
48
49
49
50
default : image
Original file line number Diff line number Diff line change 13
13
- [x] [ PgAutoFailover] ( https://github.com/hapostgres/pg_auto_failover )
14
14
- [x] [ PgJobmon] ( https://github.com/omniti-labs/pg_jobmon )
15
15
- [x] [ PgPartman] ( https://github.com/pgpartman/pg_partman )
16
-
16
+ - [x] [ HypoPG ] ( https://github.com/HypoPG/hypopg )
17
17
18
18
## Releases
19
19
- [ Versioning Policy] ( ./docs/version-policy.md )
Original file line number Diff line number Diff line change @@ -427,6 +427,55 @@ RUN set -ex \
427
427
&& rm /tmp/pg_partman.tar.gz \
428
428
&& rm -rf /tmp/pg_partman
429
429
430
+ # Adding hypopg
431
+ ARG HYPOPG_VERSION
432
+
433
+ RUN set -e \
434
+ && cd /tmp\
435
+ && apt-get update \
436
+ && apt-get install -y \
437
+ ca-certificates \
438
+ openssl \
439
+ tar \
440
+ autoconf \
441
+ automake \
442
+ g++ \
443
+ clang \
444
+ llvm \
445
+ libtool \
446
+ libxml2-dev \
447
+ make \
448
+ perl \
449
+ wget \
450
+ && wget -O hypopg.tar.gz "https://github.com/HypoPG/hypopg/archive/refs/tags/${HYPOPG_VERSION}.tar.gz" \
451
+ && mkdir -p /tmp/hypopg \
452
+ && tar \
453
+ --extract \
454
+ --file hypopg.tar.gz \
455
+ --directory /tmp/hypopg \
456
+ --strip-components 1 \
457
+ && cd /tmp/hypopg \
458
+ && make \
459
+ && make install \
460
+ # clean
461
+ && cd / \
462
+ && rm /tmp/hypopg.tar.gz \
463
+ && rm -rf /tmp/hypopg \
464
+ && apt-get autoremove --purge -y \
465
+ autoconf \
466
+ automake \
467
+ g++ \
468
+ clang \
469
+ llvm \
470
+ make \
471
+ perl \
472
+ wget \
473
+ && apt-get clean -y \
474
+ && rm -rf \
475
+ /var/lib/apt/lists/* \
476
+ /tmp/* \
477
+ /var/tmp/*
478
+
430
479
USER 1001
431
480
432
481
ENTRYPOINT [ "/opt/bitnami/scripts/postgresql/timescaledb-bitnami-entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ PG_REPACK_VERSION=1.5.0
13
13
POSTGRES_HLL_VERSION =2.18
14
14
PG_JOBMON_VERSION =1.4.1
15
15
PG_PARTMAN_VERSION =5.0.1
16
+ HYPOPG_VERSION =1.4.0
16
17
PREV_TS_VERSION =$(shell wget --quiet -O - https://raw.githubusercontent.com/timescale/timescaledb/${TS_VERSION}/version.config | grep update_from_version | sed -e 's!update_from_version = !!')
17
18
PREV_TS_IMAGE ="timescale/timescaledb:$(PREV_TS_VERSION ) -pg$(PG_VER_NUMBER ) -bitnami"
18
19
PREV_IMAGE =$(shell if docker pull $(PREV_TS_IMAGE ) >/dev/null; then echo "$(PREV_TS_IMAGE ) "; else echo "bitnami/postgresql:$(PG_VER_NUMBER ) "; fi )
@@ -39,7 +40,8 @@ DOCKER_BUILD_ARGS = --build-arg PG_VERSION=$(PG_VER_NUMBER) \
39
40
--build-arg PG_AUTO_FAILOVER_VERSION=$(PG_AUTO_FAILOVER_VERSION ) \
40
41
--build-arg POSTGRES_HLL_VERSION=$(POSTGRES_HLL_VERSION ) \
41
42
--build-arg PG_JOBMON_VERSION=$(PG_JOBMON_VERSION ) \
42
- --build-arg PG_PARTMAN_VERSION=$(PG_PARTMAN_VERSION )
43
+ --build-arg PG_PARTMAN_VERSION=$(PG_PARTMAN_VERSION ) \
44
+ --build-arg HYPOPG_VERSION=$(HYPOPG_VERSION )
43
45
44
46
45
47
default : image
You can’t perform that action at this time.
0 commit comments