Skip to content

Commit 3563c6d

Browse files
authored
Add LZ4 Compression Support for PostgreSQL (#11504)
Tested via buddy build.
1 parent ec27dee commit 3563c6d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

SPECS/postgresql/postgresql.spec

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Summary: PostgreSQL database engine
44
Name: postgresql
55
Version: 16.5
6-
Release: 1%{?dist}
6+
Release: 2%{?dist}
77
License: PostgreSQL
88
Vendor: Microsoft Corporation
99
Distribution: Azure Linux
@@ -15,6 +15,7 @@ Source1: %{name}.service
1515
# Common libraries needed
1616
BuildRequires: krb5-devel
1717
BuildRequires: libxml2-devel
18+
BuildRequires: lz4-devel
1819
BuildRequires: openldap
1920
BuildRequires: openssl-devel
2021
BuildRequires: perl
@@ -33,6 +34,7 @@ BuildRequires: sudo
3334
Requires: %{name}-libs = %{version}-%{release}
3435
Requires: krb5
3536
Requires: libxml2
37+
Requires: lz4
3638
Requires: openldap
3739
Requires: openssl
3840
Requires: readline
@@ -96,6 +98,7 @@ sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_man
9698
--with-openssl \
9799
--with-gssapi \
98100
--with-readline \
101+
--with-lz4 \
99102
--with-system-tzdata=%{_datadir}/zoneinfo \
100103
--docdir=%{_docdir}/postgresql
101104
make -C ./src/backend generated-headers
@@ -240,6 +243,9 @@ fi
240243
%{_unitdir}/%{name}.service
241244

242245
%changelog
246+
* Mon Jan 15 2025 Uri Smiley <[email protected]> - 16.5-2
247+
- Add LZ4 option to enable TOAST compression
248+
243249
* Mon Nov 18 2024 CBL-Mariner Servicing Account <[email protected]> - 16.5-1
244250
- Auto-upgrade to 16.5 - CVE-2024-10976, CVE-2024-10977, CVE-2024-10978, CVE-2024-10979
245251

0 commit comments

Comments
 (0)