Skip to content

Commit

Permalink
Install wal2json only for PG14 and PG15
Browse files Browse the repository at this point in the history
  • Loading branch information
naisila committed Aug 15, 2023
1 parent c9c814a commit b167ba6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions circleci/images/exttester/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,16 @@ RUN echo "deb https://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" >> /e
libpq5=${pgdg_version} \
postgresql-client-${PG_MAJOR}=${pgdg_version} \
postgresql-${PG_MAJOR}-dbgsym=${pgdg_version} \
postgresql-server-dev-${PG_MAJOR}=${pgdg_version} \
postgresql-server-dev-${PG_MAJOR}=${pgdg_version}

# wal2json not available yet for PG16
RUN if [ "$PG_MAJOR" != "16" ]; \
then \
apt-get install -y --no-install-recommends --allow-downgrades postgresql-${PG_MAJOR}-wal2json; \
fi;

# clear apt cache
&& rm -rf /var/lib/apt/lists/*
RUN rm -rf /var/lib/apt/lists/*

# add postgress to the path
ENV PATH=/usr/lib/postgresql/$PG_MAJOR/bin/:$PATH
Expand Down

0 comments on commit b167ba6

Please sign in to comment.