Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wt7HY-0010DZ-35 for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Aug 2026 17:25:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wt7HW-00DeUw-2s for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Aug 2026 17:25:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wt7HW-00DeUn-1i for pgsql-hackers@lists.postgresql.org; Sun, 09 Aug 2026 17:25:54 +0000 Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wt7HT-000000013xb-3aPI for pgsql-hackers@postgresql.org; Sun, 09 Aug 2026 17:25:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ny7Qa/2LdB2K4dZKaD2MubwbhUzKSKaBky81aseEmLE=; b=jUxfSy8ETsqXbxHrOHwGZSgQ6D Xbaprd+w2dY1YGyuZHJ10vqCWDnH+CdG8TaeW547DlE5HW+W/i95PyFTn9PQtItrWP1xg5d7I41VA dSXNYQpaMww77ukIT4sv5kB64Z1aDTWOXY8TpULJQ/1IhrQ33iWhpBotTMFFTu9U8t2q6H/rF588Q e2CCzTDbrnag5XKPYZhZlBLM3h4jKVPhFBHQJ+o5gBvcOyOIawip3mDyK4+94tmxZXupQN2r35fXN 2REAtVAxdE4rJi6ZKNDWCN0dEtyfIwWFEktKAoY+pHbmPx9UBY5QBctXBfeDzC8ZQA/N9XdENiOzS ws6hhuAA==; Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1wt7H7-0028ZT-1p; Sun, 09 Aug 2026 17:25:29 +0000 Date: Sun, 9 Aug 2026 19:25:26 +0200 From: Christoph Berg To: Tomas Vondra Cc: Michael Paquier , Andrey Borodin , Ken Marshall , Hannu Krosing , Andreas Karlsson , wenhui qiu , Laurenz Albe , Andres Freund , Jelte Fennema-Nio , Japin Li , Fujii Masao , pgsql-hackers , John Naylor Subject: Re: WAL compression setting after PostgreSQL LZ4 default change Message-ID: Mail-Followup-To: Christoph Berg , Tomas Vondra , Michael Paquier , Andrey Borodin , Ken Marshall , Hannu Krosing , Andreas Karlsson , wenhui qiu , Laurenz Albe , Andres Freund , Jelte Fennema-Nio , Japin Li , Fujii Masao , pgsql-hackers , John Naylor References: <3ebe2c65-7fe5-49cb-ad49-84c1d0cf567b@vondra.me> <1a39cbd6-6528-4f04-8d19-54e3790f006a@vondra.me> <438ce1b2-54d5-4730-99aa-47b9b8f97a19@vondra.me> <18d632e6-6fa9-42fc-9dda-bad166374aa5@vondra.me> <9444bb52-136d-46e1-9989-ab514f127dc1@vondra.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9444bb52-136d-46e1-9989-ab514f127dc1@vondra.me> X-Debian-User: myon List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: Tomas Vondra > + The supported methods are off, on, > + lz4 (if PostgreSQL was compiled with ), > + zstd (if PostgreSQL was compiled with ), and > + pglz. > + The value on selects the first of zstd, > + lz4, pglz that is available. > #wal_compression = off # enables compression of full-page writes; > - # off, pglz (or "on"), lz4, or zstd > + # off, on, lz4, zstd, or pglz (on means the first > + # of zstd, lz4 and pglz, supported by the build) I would put zstd before lz4 in both places as it's preferred over it. Christoph