-
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 nine more extensions for Postgres 17 (#863)
Update the build scripting and default Postgres version for these extensions, building from PGXN where available, and with the latest version where it has changed: * pg_semver v0.40.0 * pg_show_plans v2.1.2 * pg_similarity * pg_smtp_client * pg_sparse * pg_squeeze * pg_stat_kcache v2.3.0 * pg_stat_monitor * pg_store_plans
- Loading branch information
Showing
20 changed files
with
87 additions
and
203 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/theory/pg-semver.git | ||
|
||
ARG RELEASE=v0.32.1 | ||
|
||
RUN cd pg-semver && \ | ||
git fetch origin ${RELEASE} && \ | ||
git checkout ${RELEASE} && \ | ||
make | ||
# Extension build dependencies | ||
# ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN curl -O https://api.pgxn.org/dist/semver/${EXTENSION_VERSION}/semver-${EXTENSION_VERSION}.zip \ | ||
&& unzip semver-${EXTENSION_VERSION}.zip \ | ||
&& cd semver-${EXTENSION_VERSION} && make | ||
WORKDIR /app/semver-${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,20 +1,9 @@ | ||
# 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 \ | ||
cmake | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/cybertec-postgresql/pg_show_plans.git | ||
|
||
# Set project version | ||
ARG RELEASE=v2.1.0 | ||
|
||
# Build extension | ||
RUN cd pg_show_plans && \ | ||
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/cybertec-postgresql/${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,8 +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/eulerto/pg_similarity.git | ||
|
||
RUN cd pg_similarity && \ | ||
make | ||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "pg_similarity_$(perl -E 'print shift =~ s/[.]0$//r =~ s/[.]/_/gr' "${EXTENSION_VERSION}")" https://github.com/eulerto/${EXTENSION_NAME}.git \ | ||
&& make -C ${EXTENSION_NAME} 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,24 +1,14 @@ | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/pgrx-builder:pg${PG_VERSION}-pgrx0.12.7 | ||
USER root | ||
|
||
ARG RELEASE=v0.2.0 | ||
|
||
# Extension build dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential | ||
|
||
# Install Rust | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
RUN cargo install cargo-pgrx --version 0.12.7 --locked | ||
ARG PG_VERSION | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
|
||
# Set default Rust version | ||
RUN /root/.cargo/bin/rustup default stable | ||
|
||
# Clone repository | ||
RUN git clone --depth 1 --branch ${RELEASE} https://github.com/brianpursley/pg_smtp_client | ||
|
||
# Build the extension | ||
RUN cd pg_smtp_client && \ | ||
cargo pgrx init --pg15 /usr/bin/pg_config && \ | ||
cargo pgrx package | ||
USER root | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ | ||
&& /root/.cargo/bin/rustup default stable \ | ||
&& git clone --depth 1 --branch v${EXTENSION_VERSION} https://github.com/brianpursley/${EXTENSION_NAME}.git \ | ||
&& cd ${EXTENSION_NAME} \ | ||
&& cargo pgrx init --pg${PG_VERSION}=/usr/bin/pg_config \ | ||
&& cargo pgrx package |
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,17 +1,11 @@ | ||
# Set PostgreSQL version | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
USER root | ||
|
||
ARG RELEASE=v0.4.2 | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/paradedb/paradedb.git && \ | ||
cd paradedb && \ | ||
git fetch --tags && \ | ||
git fetch --depth 1 origin tag ${RELEASE} && \ | ||
git checkout ${RELEASE} | ||
|
||
RUN cd paradedb/pg_sparse && \ | ||
make USE_PGXS=1 OPTFLAGS="" && \ | ||
make install | ||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "v${EXTENSION_VERSION}" https://github.com/paradedb/paradedb.git \ | ||
&& make -C paradedb/${EXTENSION_NAME} USE_PGXS=1 OPTFLAGS="" |
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://github.com/cybertec-postgresql/pg_squeeze.git | ||
|
||
# Set project version | ||
ARG RELEASE=1.5.2 | ||
|
||
# Build extension | ||
RUN cd pg_squeeze && \ | ||
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 "REL$(perl -E 'print shift =~ s/\./_/gr' "${EXTENSION_VERSION}")" https://github.com/cybertec-postgresql/${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/powa-team/pg_stat_kcache.git | ||
|
||
ARG RELEASE=REL2_2_1 | ||
|
||
RUN cd pg_stat_kcache && \ | ||
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 "REL$(perl -E 'print shift =~ s/\./_/gr' "${EXTENSION_VERSION}")" https://github.com/powa-team/${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,15 +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/percona/pg_stat_monitor.git | ||
|
||
# Set project version | ||
ARG RELEASE=2.1.0 | ||
|
||
# Build extension | ||
RUN cd pg_stat_monitor && \ | ||
git fetch origin ${RELEASE} && \ | ||
git checkout ${RELEASE} && \ | ||
make USE_PGXS=1 | ||
# Extension build dependencies | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN curl -O https://api.pgxn.org/dist/${EXTENSION_NAME}/${EXTENSION_VERSION}/${EXTENSION_NAME}-${EXTENSION_VERSION}.zip \ | ||
&& unzip ${EXTENSION_NAME}-${EXTENSION_VERSION}.zip \ | ||
&& make -C ${EXTENSION_NAME}-${EXTENSION_VERSION} USE_PGXS=1 | ||
WORKDIR /app/${EXTENSION_NAME}-${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
Oops, something went wrong.