-
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 pgaudit and other six other extensions (#864)
Update the following extension build scripts, build from PGXN where possible, and upgrade the versions: * pg_text_semver v1.2.1 * pg_timeit at specific commit * pg_tle v1.2.0 * pg_track_settings * pg_uuidv7 v1.6.0 * pg_wait_sampling v1.1.6 Add separate build configurations for pgaudit, which has different versions for different major Postgres releases, but keep the extension name the same. Teach the extensions workflow not to build it on the wrong major versions, just like with pg_hint_plan.
- Loading branch information
Showing
23 changed files
with
190 additions
and
148 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
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/bigsmoke/pg_text_semver.git | ||
|
||
# Set project version | ||
ARG RELEASE=v0.1.4 | ||
|
||
# Build extension | ||
RUN cd pg_text_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/${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} |
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,19 +1,14 @@ | ||
[extension] | ||
name = "pg_text_semver" | ||
version = "0.1.4" | ||
version = "1.2.1" | ||
repository = "https://github.com/bigsmoke/pg_text_semver" | ||
license = "Copyright" | ||
description = "PostgreSQL semantic versioning extension, with comparison functions and operators." | ||
documentation = "https://github.com/bigsmoke/pg_text_semver" | ||
categories = ["data_transformations"] | ||
|
||
[build] | ||
postgres_version = "15" | ||
postgres_version = "17" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = """ | ||
cd pg_text_semver && 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" |
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,11 @@ | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/joelonsql/pg-timeit.git | ||
|
||
RUN cd pg-timeit && \ | ||
make | ||
# Clone and build the extension. | ||
# ARG EXTENSION_NAME | ||
# ARG EXTENSION_VERSION | ||
ARG RELEASE=d83ab65 | ||
RUN git clone https://github.com/joelonsql/pg-timeit.git \ | ||
&& cd pg-timeit \ | ||
&& 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,12 +1,12 @@ | ||
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/pg_tle.git | ||
# Extension build dependencies | ||
USER root | ||
RUN apt-get update && apt-get install -y libkrb5-dev | ||
|
||
ARG RELEASE=v1.0.4 | ||
|
||
RUN cd pg_tle && \ | ||
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/aws/${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/rjuju/pg_track_settings.git | ||
|
||
# Set project version | ||
ARG RELEASE=2.1.2 | ||
|
||
# Build extension | ||
RUN cd pg_track_settings && \ | ||
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} |
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,11 @@ | ||
ARG PG_VERSION=15 | ||
# Set PostgreSQL version | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/fboulnois/pg_uuidv7.git | ||
|
||
ARG RELEASE=v1.0.2 | ||
|
||
RUN cd pg_uuidv7 && \ | ||
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} |
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/postgrespro/pg_wait_sampling.git | ||
|
||
# Set project version | ||
ARG RELEASE=v1.1.4 | ||
|
||
# Build extension | ||
RUN cd pg_wait_sampling && \ | ||
git fetch origin ${RELEASE} && \ | ||
git checkout ${RELEASE} && \ | ||
make USE_PGXS=1 | ||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "v${EXTENSION_VERSION}" https://github.com/postgrespro/${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
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,12 @@ | ||
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 libkrb5-dev | ||
|
||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "${EXTENSION_VERSION}" https://github.com/${EXTENSION_NAME}/${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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[extension] | ||
name = "pgaudit" | ||
version = "1.6.2" | ||
repository = "https://github.com/pgaudit/pgaudit" | ||
license = "PostgreSQL" | ||
description = "The PostgreSQL Audit Extension (pgAudit) provides detailed session and/or object audit logging via the standard PostgreSQL logging facility." | ||
homepage = "https://www.pgaudit.org/" | ||
documentation = "https://github.com/pgaudit/pgaudit/blob/master/README.md" | ||
categories = ["auditing_logging"] | ||
|
||
[dependencies] | ||
apt = ["libc6"] | ||
|
||
[build] | ||
postgres_version = "14" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = "make -C pgaudit USE_PGXS=1 install" |
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,12 @@ | ||
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 libkrb5-dev | ||
|
||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "${EXTENSION_VERSION}" https://github.com/${EXTENSION_NAME}/${EXTENSION_NAME}.git \ | ||
&& make -C ${EXTENSION_NAME} USE_PGXS=1 |
Oops, something went wrong.