@@ -18,16 +18,16 @@ ARG PG_SERVER_PORT
1818ENV PG_SERVER_PORT=${PG_SERVER_PORT:-5432}
1919
2020ARG WALG_VERSION
21- ENV WALG_VERSION=${WALG_VERSION:-3.0.3 }
21+ ENV WALG_VERSION=${WALG_VERSION:-3.0.5 }
2222
2323ARG PG_TIMETABLE_VERSION
24- ENV PG_TIMETABLE_VERSION=${PG_TIMETABLE_VERSION:-5.9 .0}
24+ ENV PG_TIMETABLE_VERSION=${PG_TIMETABLE_VERSION:-5.11 .0}
2525
2626ARG LOGERRORS_VERSION
2727ENV LOGERRORS_VERSION=${LOGERRORS_VERSION:-2.1.3}
2828
2929ARG PGVECTOR_VERSION
30- ENV PGVECTOR_VERSION=${PGVECTOR_VERSION:-0.7.4 }
30+ ENV PGVECTOR_VERSION=${PGVECTOR_VERSION:-0.8.0 }
3131
3232# https://gitlab.com/postgres-ai/custom-images/-/merge_requests/56
3333ARG PG_CRON_VERSION
@@ -67,9 +67,7 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/partial \
6767 && make && make install; \
6868 fi \
6969 # powa extension
70- && if [ $(echo "$PG_SERVER_VERSION < 17" | /usr/bin/bc) = "1" ]; then \
71- apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-powa; \
72- fi \
70+ && apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-powa \
7371 # pg_auth_mon extension
7472 && if [ "${PG_SERVER_VERSION}" = "9.6" ]; then \
7573 cd /tmp && git clone --branch v1.0 --single-branch https://github.com/RafiaSabih/pg_auth_mon.git \
@@ -87,21 +85,22 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/partial \
8785 timescaledb-2-postgresql-${PG_SERVER_VERSION}; \
8886 fi \
8987 # citus extension
90- && if [ $(echo "$PG_SERVER_VERSION > 10" | /usr/bin/bc) = "1" ] && [ $(echo "$PG_SERVER_VERSION < 17" | /usr/bin/bc) = "1" ] ; then \
88+ && if [ $(echo "$PG_SERVER_VERSION > 10" | /usr/bin/bc) = "1" ]; then \
9189 if [ "${PG_SERVER_VERSION}" = "11" ]; then CITUS_VERSION="10.0" ; \
9290 elif [ "${PG_SERVER_VERSION}" = "12" ]; then CITUS_VERSION="10.2" ; \
9391 elif [ "${PG_SERVER_VERSION}" = "13" ]; then CITUS_VERSION="11.3" ; \
9492 elif [ "${PG_SERVER_VERSION}" = "14" ]; then CITUS_VERSION="12.1" ; \
95- elif [ "${PG_SERVER_VERSION}" = "15" ]; then CITUS_VERSION="12.1" ; \
96- elif [ "${PG_SERVER_VERSION}" = "16" ]; then CITUS_VERSION="12.1" ; \
93+ elif [ "${PG_SERVER_VERSION}" = "15" ]; then CITUS_VERSION="13.0" ; \
94+ elif [ "${PG_SERVER_VERSION}" = "16" ]; then CITUS_VERSION="13.0" ; \
95+ elif [ "${PG_SERVER_VERSION}" = "17" ]; then CITUS_VERSION="13.0" ; \
9796 fi \
9897 && curl -s https://install.citusdata.com/community/deb.sh | bash \
9998 && apt-get install --no-install-recommends -y postgresql-"${PG_SERVER_VERSION}" -citus-"${CITUS_VERSION}" ; \
10099 fi \
101100 # hll extension
102101 && apt-get install --no-install-recommends -y postgresql-"${PG_SERVER_VERSION}" -hll \
103102 # topn extension
104- && if [ $(echo "$PG_SERVER_VERSION > 9.6" | /usr/bin/bc) = "1" ] && [ $(echo "$PG_SERVER_VERSION < 17" | /usr/bin/bc) = "1" ] ; then \
103+ && if [ $(echo "$PG_SERVER_VERSION > 9.6" | /usr/bin/bc) = "1" ]; then \
105104 curl -s https://install.citusdata.com/community/deb.sh | bash \
106105 && apt-get install --no-install-recommends -y postgresql-"${PG_SERVER_VERSION}" -topn; \
107106 fi \
@@ -131,12 +130,7 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/partial \
131130 pgxn install ddlx && pgxn install postgresql_anonymizer; \
132131 fi \
133132 # pg_stat_kcache extension
134- && if [ $(echo "$PG_SERVER_VERSION < 17" | /usr/bin/bc) = "1" ]; then \
135- apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-pg-stat-kcache; \
136- elif [ $(echo "$PG_SERVER_VERSION == 17" | /usr/bin/bc) = "1" ]; then \
137- cd /tmp && git clone --branch REL2_3_0 https://github.com/powa-team/pg_stat_kcache.git \
138- && cd pg_stat_kcache && make && make install; \
139- fi \
133+ && apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-pg-stat-kcache \
140134 # pg_wait_sampling extension
141135 && apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-pg-wait-sampling \
142136 # pg_qualstats extension
@@ -164,19 +158,17 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/partial \
164158 && USE_PGXS=1 make && USE_PGXS=1 make install; \
165159 fi \
166160 # pgvector extension
167- && if [ $(echo "$PG_SERVER_VERSION >= 12" | /usr/bin/bc) = "1" ]; then \
168- cd /tmp && git clone --branch v${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git \
161+ && if [ $(echo "$PG_SERVER_VERSION >= 11" | /usr/bin/bc) = "1" ]; then \
162+ if [ "${PG_SERVER_VERSION}" = "11" ]; then PGVECTOR_VERSION="0.5.1" ; \
163+ elif [ "${PG_SERVER_VERSION}" = "12" ]; then PGVECTOR_VERSION="0.7.4" ; \
164+ else PGVECTOR_VERSION="${PGVECTOR_VERSION}" ; \
165+ fi \
166+ && cd /tmp && git clone --branch v${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git \
169167 && cd pgvector && make OPTFLAGS="" install \
170168 && mkdir /usr/share/doc/pgvector \
171169 && cp LICENSE README.md /usr/share/doc/pgvector \
172170 && cp sql/vector.sql /usr/share/postgresql/${PG_SERVER_VERSION}/extension/vector--${PGVECTOR_VERSION}.sql; \
173- elif [ $(echo "$PG_SERVER_VERSION == 11" | /usr/bin/bc) = "1" ]; then \
174- cd /tmp && git clone --branch v0.5.1 https://github.com/pgvector/pgvector.git \
175- && cd pgvector && make OPTFLAGS="" install \
176- && mkdir /usr/share/doc/pgvector \
177- && cp LICENSE README.md /usr/share/doc/pgvector \
178- && cp sql/vector.sql /usr/share/postgresql/11/extension/vector--0.5.1.sql; \
179- fi \
171+ fi \
180172 # pgBackRest
181173 && apt-get install --no-install-recommends -y \
182174 pgbackrest zstd openssh-client \
0 commit comments