Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 8 extensions for Postgres 17 #867

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 0 additions & 12 deletions contrib/pg-telemetry/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion contrib/pg_squeeze/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[extension]
name = "pg_squeeze"
version = "1.5.0"
version = "1.7.0"
repository = "https://github.com/cybertec-postgresql/pg_squeeze"
license = "Copyright"
description = "A PostgreSQL extension for automatic bloat cleanup."
Expand Down
18 changes: 6 additions & 12 deletions contrib/pgq/Dockerfile
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/pgq/pgq.git

# Set project version
ARG RELEASE=v3.5

# Build extension
RUN cd pgq && \
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/${EXTENSION_NAME}/${EXTENSION_NAME}.git \
&& make -C ${EXTENSION_NAME}
11 changes: 3 additions & 8 deletions contrib/pgq/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[extension]
name = "pgq"
version = "3.5.0"
version = "3.5.1"
repository = "https://github.com/pgq/pgq"
license = "ISC"
description = "Generic Queue for PostgreSQL."
Expand All @@ -11,12 +11,7 @@ categories = ["orchestration"]
apt = ["libc6"]

[build]
postgres_version = "15"
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pgq && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""
install_command = "make -C pgq install"
18 changes: 8 additions & 10 deletions contrib/pgrouting/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
ARG PG_VERSION=15
ARG PG_VERSION
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

# Install the dependencies
USER root
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libboost-all-dev \
perl \
postgresql-server-dev-13 \
python3-sphinx

# Clone pgRouting repository
RUN git clone https://github.com/pgRouting/pgrouting.git

RUN cd pgrouting \
&& mkdir build \
&& cd build \
# Clone and build the extension.
ARG EXTENSION_NAME
ARG EXTENSION_VERSION
RUN git clone --depth 1 --branch "v${EXTENSION_VERSION}" https://github.com/${EXTENSION_NAME}/${EXTENSION_NAME}.git \
&& mkdir -p ${EXTENSION_NAME}/build \
&& cd ${EXTENSION_NAME}/build \
&& cmake .. \
&& make
12 changes: 3 additions & 9 deletions contrib/pgrouting/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[extension]
name = "pgrouting"
version = "3.5.0"
version = "3.7.0"
repository = "https://github.com/pgRouting/pgrouting"
license = "GPL-2.0"
description = "pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality."
Expand All @@ -12,13 +12,7 @@ categories = ["data_transformations"]
apt = ["libstdc++6", "libc6", "libgcc-s1"]

[build]
postgres_version = "15"
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pgrouting/build && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""

install_command = "make -C pgrouting/build install"
23 changes: 8 additions & 15 deletions contrib/pgsodium/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
# 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 \
libsodium-dev

# Clone repository
RUN git clone https://github.com/michelp/pgsodium.git

# Set project version
ARG RELEASE=v3.1.8
USER root
RUN apt-get update && apt-get install -y libsodium-dev

# Build extension
RUN cd pgsodium && \
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/michelp/${EXTENSION_NAME}.git \
&& make -C ${EXTENSION_NAME}
11 changes: 3 additions & 8 deletions contrib/pgsodium/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[extension]
name = "pgsodium"
version = "3.1.8"
version = "3.1.9"
repository = "https://github.com/michelp/pgsodium"
license = "Copyright"
description = "Modern cryptography for PostgreSQL using libsodium."
Expand All @@ -11,12 +11,7 @@ categories = ["security"]
apt = ["libsodium23", "libc6"]

[build]
postgres_version = "15"
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pgsodium && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""
install_command = "make -C pgsodium install"
21 changes: 8 additions & 13 deletions contrib/pgsql_http/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
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 \
libcurl4-openssl-dev

# Clone repository
RUN git clone https://github.com/pramsey/pgsql-http.git

ARG RELEASE=v1.5.0
USER root
RUN apt-get update && apt-get install -y libcurl4-openssl-dev

RUN cd pgsql-http && \
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/pramsey/pgsql-http.git \
&& make -C pgsql-http
11 changes: 3 additions & 8 deletions contrib/pgsql_http/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[extension]
name = "pgsql_http"
version = "1.5.0"
version = "1.6.1"
repository = "https://github.com/pramsey/pgsql-http"
license = "MIT"
description = "HTTP client for PostgreSQL, retrieve a web page from inside the database."
Expand All @@ -11,12 +11,7 @@ categories = ["connectors"]
apt = ["libc6", "libcurl4"]

[build]
postgres_version = "15"
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pgsql-http && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""
install_command = "make -C pgsql-http install"
19 changes: 6 additions & 13 deletions contrib/pgsql_ogr_fdw/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,10 @@ FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

# Extension build dependencies
RUN apt-get update && apt-get install -y \
libgdal-dev
RUN apt-get update && apt-get install -y libgdal-dev

# Clone repository
RUN git clone https://github.com/pramsey/pgsql-ogr-fdw.git

# Set project version
ARG RELEASE=v1.1.4

# Build extension
RUN cd pgsql-ogr-fdw && \
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/pramsey/pgsql-ogr-fdw.git \
&& make -C pgsql-ogr-fdw
9 changes: 2 additions & 7 deletions contrib/pgsql_ogr_fdw/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[extension]
name = "pgsql_ogr_fdw"
version = "1.1.0"
version = "1.1.5"
repository = "https://github.com/pramsey/pgsql-ogr-fdw"
license = "MIT"
description = "PostgreSQL foreign data wrapper for OGR."
Expand All @@ -14,9 +14,4 @@ apt = ["libgdal30", "libc6"]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pgsql-ogr-fdw && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""
install_command = "make -C pgsql-ogr-fdw install"
18 changes: 8 additions & 10 deletions contrib/pgtap/Dockerfile
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/pgtap.git

ARG RELEASE=v1.3.2

RUN cd pgtap && \
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/${EXTENSION_NAME}/${EXTENSION_VERSION}/${EXTENSION_NAME}-${EXTENSION_VERSION}.zip \
&& unzip ${EXTENSION_NAME}-${EXTENSION_VERSION}.zip \
&& cd ${EXTENSION_NAME}-${EXTENSION_VERSION} && make
WORKDIR /app/${EXTENSION_NAME}-${EXTENSION_VERSION}
9 changes: 2 additions & 7 deletions contrib/pgtap/Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ documentation = "https://pgtap.org/documentation.html"
categories = ["tooling_admin"]

[build]
postgres_version = "16"
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pgtap && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/16/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/16/lib
"""
install_command = "make install"
10 changes: 10 additions & 0 deletions contrib/pgtelemetry/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ARG PG_VERSION
FROM quay.io/coredb/c-builder:pg${PG_VERSION}

# 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 \
&& cd ${EXTENSION_NAME}-${EXTENSION_VERSION} && make
WORKDIR /app/${EXTENSION_NAME}-${EXTENSION_VERSION}
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ categories = ["tooling_admin", "metrics"]
apt = ["libc6"]

[build]
postgres_version = "15"
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pg-telemetry && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""
install_command = "make install"
18 changes: 6 additions & 12 deletions contrib/pgtt/Dockerfile
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/darold/pgtt.git

# Set project version
ARG RELEASE=v2.10

# Build extension
RUN cd pgtt && \
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/darold/${EXTENSION_NAME}.git \
&& make -C ${EXTENSION_NAME}
11 changes: 3 additions & 8 deletions contrib/pgtt/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[extension]
name = "pgtt"
version = "2.10.0"
version = "4.0.0"
repository = "https://github.com/darold/pgtt"
license = "ISC"
description = "Extension to add Global Temporary Tables feature to PostgreSQL."
Expand All @@ -11,12 +11,7 @@ categories = ["index_table_optimizations"]
apt = ["libc6"]

[build]
postgres_version = "15"
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pgtt && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""
install_command = "make -C pgtt install"