-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update extensions P-S for Postgres 17 (#869)
Update the build scripting for the following extensions for PostgreSQL 17, and upgrade the version as marked. * pointcloud * postgres_decoderbufs * postgresbson 2.0.2 * postgresql_anonymizer 1.3.2 * postgresql_hll 2.18.0 * postgresql_logfdw * postgresql_topn 2.7.0 * powa 5.0.0 * prefix 1.2.9 * quantile * random * rum 1.3.14 * sequential_uuids * set_user 4.1.0 * smlar * sslutils 1.4.0 * supautils 2.6.0 * system_stats 3.2.0
- Loading branch information
Showing
37 changed files
with
197 additions
and
358 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Set PostgreSQL version | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Extension build dependencies | ||
USER root | ||
RUN apt-get update && apt-get install -y \ | ||
cmake \ | ||
autoconf \ | ||
automake \ | ||
libtool \ | ||
zlib1g-dev \ | ||
libxml2-dev \ | ||
libcunit1-dev | ||
|
||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "v${EXTENSION_VERSION}" https://github.com/pg${EXTENSION_NAME}/${EXTENSION_NAME}.git \ | ||
&& cd ${EXTENSION_NAME} \ | ||
&& ./autogen.sh \ | ||
&& ./configure \ | ||
&& make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
# Set PostgreSQL version | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
USER root | ||
|
||
# Extension build dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
libprotobuf-c-dev | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/debezium/postgres-decoderbufs.git | ||
USER root | ||
RUN apt-get update && apt-get install -y libprotobuf-c-dev | ||
|
||
# Build extension | ||
RUN cd postgres-decoderbufs && \ | ||
make | ||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
# ARG EXTENSION_VERSION | ||
ARG RELEASE=84f30f3 | ||
RUN git clone https://github.com/debezium/postgres-decoderbufs.git ${EXTENSION_NAME} \ | ||
&& cd ${EXTENSION_NAME} \ | ||
&& git checkout ${RELEASE} \ | ||
&& make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
USER root | ||
|
||
# Extension build dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
libbson-dev | ||
# Clone repository | ||
RUN git clone https://github.com/buzzm/postgresbson.git | ||
RUN mkdir -p ~/projects/bson/include | ||
# For some reason these need to be in ~/projects/bson/include/ and postgresbson/ | ||
RUN cp -r /usr/include/libbson-1.0/* ~/projects/bson/include/ | ||
RUN cp -r /usr/include/libbson-1.0/* postgresbson/ | ||
USER root | ||
RUN apt-get update && apt-get install -y libbson-dev | ||
|
||
# Replacing BSON_SHLIB with the path to libbson-1.0.so (https://github.com/buzzm/postgresbson/blob/5b442c42642075c43edbfc41c1e2e7e6d1034758/Makefile#L9) | ||
RUN cd postgresbson && make BSON_SHLIB=/usr/lib/x86_64-linux-gnu/libbson-1.0.so | ||
# Extension build dependencies | ||
# ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN curl -O https://api.pgxn.org/dist/bson/${EXTENSION_VERSION}/bson-${EXTENSION_VERSION}.zip \ | ||
&& unzip bson-${EXTENSION_VERSION}.zip \ | ||
&& cd bson-${EXTENSION_VERSION} \ | ||
# For some reason these need to be in ~/projects/bson/include/ and ./ | ||
&& mkdir -p ~/projects/bson \ | ||
&& cp -r /usr/include/libbson-1.0 ~/projects/bson/include \ | ||
&& cp -r /usr/include/libbson-1.0/* ./ \ | ||
&& make BSON_SHLIB=/usr/lib/x86_64-linux-gnu/libbson-1.0.so | ||
WORKDIR /app/bson-${EXTENSION_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
# Set PostgreSQL version | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Clone repository | ||
RUN git clone https://gitlab.com/dalibo/postgresql_anonymizer.git | ||
|
||
# Set project version | ||
ARG RELEASE=1.3.1 | ||
|
||
# Build extension | ||
RUN cd postgresql_anonymizer && \ | ||
git fetch origin ${RELEASE} && \ | ||
git checkout ${RELEASE} && \ | ||
make | ||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "${EXTENSION_VERSION}" https://gitlab.com/dalibo/${EXTENSION_NAME}.git \ | ||
&& make -C ${EXTENSION_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/citusdata/postgresql-hll.git | ||
|
||
ARG RELEASE=v2.17 | ||
|
||
RUN cd postgresql-hll && \ | ||
git fetch origin ${RELEASE} && \ | ||
git checkout ${RELEASE} && \ | ||
make | ||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "v$(perl -E 'print shift =~ s/[.]0$//gr' "${EXTENSION_VERSION}")" https://github.com/citusdata/postgresql-hll.git ${EXTENSION_NAME} \ | ||
&& make -C ${EXTENSION_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
# Set PostgreSQL version | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/aws/postgresql-logfdw.git | ||
|
||
# Build extension | ||
RUN cd postgresql-logfdw && \ | ||
make USE_PGXS=1 | ||
ARG EXTENSION_NAME | ||
# ARG EXTENSION_VERSION | ||
ARG RELEASE=a6d7f62 | ||
RUN git clone https://github.com/aws/postgresql-logfdw.git ${EXTENSION_NAME} \ | ||
&& cd ${EXTENSION_NAME} \ | ||
&& git checkout ${RELEASE} \ | ||
&& make USE_PGXS=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/citusdata/postgresql-topn.git | ||
|
||
ARG RELEASE=v2.4.0 | ||
|
||
RUN cd postgresql-topn && \ | ||
git fetch origin ${RELEASE} && \ | ||
git checkout ${RELEASE} && \ | ||
make | ||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "v${EXTENSION_VERSION}" https://github.com/citusdata/postgresql-topn.git ${EXTENSION_NAME} \ | ||
&& make -C ${EXTENSION_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.