From 0b3d0fc489582348d6d0961f0026b643e6d0058b Mon Sep 17 00:00:00 2001 From: udsmicrosoft <136555787+udsmicrosoft@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:14:40 -0500 Subject: [PATCH 1/3] Add support for lz4 compression --- SPECS/postgresql/postgresql.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/SPECS/postgresql/postgresql.spec b/SPECS/postgresql/postgresql.spec index 3e904f50ce6..40a1630be30 100644 --- a/SPECS/postgresql/postgresql.spec +++ b/SPECS/postgresql/postgresql.spec @@ -96,6 +96,7 @@ sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_man --with-openssl \ --with-gssapi \ --with-readline \ + --with-lz4 \ --with-system-tzdata=%{_datadir}/zoneinfo \ --docdir=%{_docdir}/postgresql make -C ./src/backend generated-headers From 9699deaf4c773052ff98825913e166463c386a6c Mon Sep 17 00:00:00 2001 From: udsmicrosoft <136555787+udsmicrosoft@users.noreply.github.com> Date: Wed, 15 Jan 2025 12:28:20 -0500 Subject: [PATCH 2/3] Update release version and changelog --- SPECS/postgresql/postgresql.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SPECS/postgresql/postgresql.spec b/SPECS/postgresql/postgresql.spec index 40a1630be30..7f0d5dd8179 100644 --- a/SPECS/postgresql/postgresql.spec +++ b/SPECS/postgresql/postgresql.spec @@ -3,7 +3,7 @@ Summary: PostgreSQL database engine Name: postgresql Version: 16.5 -Release: 1%{?dist} +Release: 2%{?dist} License: PostgreSQL Vendor: Microsoft Corporation Distribution: Azure Linux @@ -241,6 +241,9 @@ fi %{_unitdir}/%{name}.service %changelog +* Mon Jan 15 2025 Uri Smiley - 16.5-2 +- Add LZ4 option to enable TOAST compression + * Mon Nov 18 2024 CBL-Mariner Servicing Account - 16.5-1 - Auto-upgrade to 16.5 - CVE-2024-10976, CVE-2024-10977, CVE-2024-10978, CVE-2024-10979 From 75f09b0cde0297dedfbd67e2d666f01de906a508 Mon Sep 17 00:00:00 2001 From: udsmicrosoft <136555787+udsmicrosoft@users.noreply.github.com> Date: Wed, 15 Jan 2025 14:29:58 -0500 Subject: [PATCH 3/3] Add lz4 as build and runtime dependency --- SPECS/postgresql/postgresql.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SPECS/postgresql/postgresql.spec b/SPECS/postgresql/postgresql.spec index 7f0d5dd8179..1c38c0de4d1 100644 --- a/SPECS/postgresql/postgresql.spec +++ b/SPECS/postgresql/postgresql.spec @@ -15,6 +15,7 @@ Source1: %{name}.service # Common libraries needed BuildRequires: krb5-devel BuildRequires: libxml2-devel +BuildRequires: lz4-devel BuildRequires: openldap BuildRequires: openssl-devel BuildRequires: perl @@ -33,6 +34,7 @@ BuildRequires: sudo Requires: %{name}-libs = %{version}-%{release} Requires: krb5 Requires: libxml2 +Requires: lz4 Requires: openldap Requires: openssl Requires: readline