adjust Citus package/version selection

This commit is contained in:
Konstantin Demin 2025-02-21 11:43:41 +03:00
parent b259b17704
commit 2bd64c4c32
Signed by: krd
GPG Key ID: 4D56F87A8BA65FD0

View File

@ -94,8 +94,11 @@ SHELL [ "/bin/sh", "-ec" ]
COPY /apt/sources.citus /etc/apt/sources.list.d/citus.sources
RUN apt-install.sh \
"postgresql-${PG_MAJOR}-citus-12.1" \
RUN apt-env.sh apt-get update ; \
citus_pkg=$(apt-cache search "^postgresql-${PG_MAJOR}-citus-[0-9.]+\$" | awk '{print $1}' | sort -rV | head -n1) ; \
: "${citus_pkg:?}" ; \
apt-install.sh \
"${citus_pkg}" \
"postgresql-${PG_MAJOR}-topn" \
; apt-clean.sh ; \
jdupes -1LSpr /usr/