diff --git a/15/alpine/Dockerfile b/15/alpine/Dockerfile index c54a97a22d..b1d62eef4d 100644 --- a/15/alpine/Dockerfile +++ b/15/alpine/Dockerfile @@ -66,6 +66,8 @@ RUN set -eux; \ icu-dev \ # https://www.postgresql.org/docs/14/release-14.html#id-1.11.6.5.5.3.7 lz4-dev \ +# https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds" + zstd-dev \ ; \ \ cd /usr/src/postgresql; \ @@ -110,6 +112,7 @@ RUN set -eux; \ --with-icu \ --with-llvm \ --with-lz4 \ + --with-zstd \ ; \ make -j "$(nproc)" world; \ make install-world; \ diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 866001d2e1..75b6ec25cd 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -63,6 +63,10 @@ RUN set -eux; \ {{ if .major >= 14 then ( -}} # https://www.postgresql.org/docs/14/release-14.html#id-1.11.6.5.5.3.7 lz4-dev \ +{{ ) else "" end -}} +{{ if .major >= 15 then ( -}} +# https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds" + zstd-dev \ {{ ) else "" end -}} ; \ \ @@ -111,6 +115,9 @@ RUN set -eux; \ {{ ) else "" end -}} {{ if .major >= 14 then ( -}} --with-lz4 \ +{{ ) else "" end -}} +{{ if .major >= 15 then ( -}} + --with-zstd \ {{ ) else "" end -}} ; \ make -j "$(nproc)" world; \