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 1whEFX-0005hK-2M for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2026 22:26:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1whEFW-00302N-0s for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2026 22:26:43 +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 1whEFV-00302C-3D for pgsql-hackers@lists.postgresql.org; Tue, 07 Jul 2026 22:26:42 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1whEFU-000000003NS-2q9n for pgsql-hackers@postgresql.org; Tue, 07 Jul 2026 22:26:41 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfout.stl.internal (Postfix) with ESMTP id 1C8A61D000F6; Tue, 7 Jul 2026 18:26:40 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Tue, 07 Jul 2026 18:26:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1783463199; x=1783549599; bh=6Hf0DgEx4b w1zhkvfPoOinkRLUiriMBRMkmNyzWUfws=; b=ce665ZDyx95uDeWR/RBtr2HJDO vWLiz8ymHo0wI+lOSNBPcCK0/pNZFoQl7JEIM5QMaIjyam2zD/p52bq2cGOmG/Q1 kFWX97E4PCADTiZdU2XA2Km1W5V3RR5zUb/EGAdb7aOHof2Uuqj4HPoGUW0rTdBp 1+SCAbMhECsYYzsM33cYMv/EvMdwd2HnY/ovPYH4Vg0zqlJuEbq2aquBNLirxFB7 ceHzJacMEu5V/wKTQjyyElQ9CAd1hzMfCs15huiwcL3CqbJfFkbl/r8omAjrO/OB APwx1f3sbC9sQ+seVAYFV6qyS/zsZzfdQRLZ7LqAoL+E7BwinQC8apa1jblw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1783463199; x=1783549599; bh=6Hf0DgEx4bw1zhkvfPoOinkRLUiriMBRMkm NyzWUfws=; b=rJZ2NrVjWTjdAv6z4FJz3t7jWCdMtSY+Ud8iG48/eJDvHfcpxJT kn/psVauOPVVlHIaYLiVhNqtn9JCMbYu41wF1NW3oNJDIT1dLzZzVPI7LZkmqtjV 0ZqHOfZEclPQAswAqnkAUWX2jASpiNQ0totAVg9meNOC7nLh1iGjDaXi7fYZSceg jaBbRBxicEFjVvsc0IuHvuER1l/9yZRq2YwXmUHz+7/j7T1JdtcGXR2aXhp6Xsgt /M3hjMtRck47fMt6ChzzsEhqfMcWkgHcUvTVmfa6FOmn+lg7TOnYH7KFSVtuvB2w uECgDYEZV7dU27Sgz6yDO4v33k8Fd+OSAxQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEJASGrNnPTCnrUWy99tDn2mmvQpqEV9hgRFBwxPhMuiiGgd2noLaxosdGpPdIxgf rQNYn6eFn4B4h5GZLJv7UUJoUHi/nxN0UNXwzagj5JMKPP9/KXwC5Vq4UZ8DPmWXdMmQTV H7V4XbcfRjZPhRu3+JJGQdUaNCP1SulAxsklN5EdhF1zezO2fbjVC1HtwQDJZ9N8ySDDx0 YiEZzOes9PR9f6d2+7rvdTAgJShahYFVFJya6/bLVJuXSncUzfdKFbhbj0CIu5TXpbXCEH pE1708xlUdd5oF9NtFWkgQpZ0znUKwgUxHtSYkDE3Ciwt35dFvGsGUe3BdFjVst+gaYXGp eGJKHB1lE8KIkuUpyx+MgRBwBHuvFk7GPRpR/O1lQKZ7ljFw4RzLGhBGr7RfslJPgpnSWt RI3CKTAw8OGTOcc8GE1H4u31RzWxmUe7Pa3yiL8S703gBATrjDPmKGQ2sf8tu5zyMPvHxo HA4lRbvgtUM/BDVd+VfSPftd8+qD7BFr848p2Utcbi7JJc/zQDw5P/AlK2P6QEyKbnCWHF bWnacHy1l6CL6pA5JC70gY4i/ZFvPhaCxybOE61CWkx2IBHurbGSmDPIRhzqJjjpjv12pT E/katwwpqAIU9MLQR03LgabTKfHy5F4e0WCunhvqRF3RK/oSEmrj/tKQy51Q X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Jul 2026 18:26:37 -0400 (EDT) Date: Wed, 8 Jul 2026 07:26:34 +0900 From: Michael Paquier To: Japin Li Cc: Fujii Masao , wenhui qiu , pgsql-hackers , John Naylor , Christoph Berg Subject: Re: WAL compression setting after PostgreSQL LZ4 default change Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AoAwF9+1aN5uK2ck" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --AoAwF9+1aN5uK2ck Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 03, 2026 at 04:38:06PM +0800, Japin Li wrote: > On Fri, 03 Jul 2026 at 11:58, Fujii Masao wrote: >> On Wed, Jul 1, 2026 at 8:45=E2=80=AFAM Michael Paquier wrote: >>> >>> On Tue, Jun 30, 2026 at 06:25:09PM +0800, wenhui qiu wrote: >>> > The recent PostgreSQL commit changes the default TOAST compression to= lz4 >>> > when LZ4 support is available, based on the rationale that LZ4 is gen= erally >>> > more efficient than pglz in terms of CPU usage and compression >>> > ratio. Given that, should we also consider changing the default >>> > compression method used by wal_compression =3D on from pglz to lz4? >>> >>> "on" is just a backward-compatible value, so we could let it as-is. >> >> Yes, so +1 to leaving "on" as it is. Making its meaning depend on >> the build options seems very confusing. Users who want lz4 or zstd >> can simply specify those methods explicitly instead of using "on". >=20 > Understood. I'll withdraw this from the CommitFest. I disagree. The whole argument is that most users don't bother changing the defaults. Here, a change between lz4/zstd and pglz is like day and night; folks are going to see improvements all the time if we switch to a better default when we can, in terms of CPU, memory and IO. -- Michael --AoAwF9+1aN5uK2ck Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmpNfRoACgkQnvQgOdby QH25Cw/9EwqXRVTw65VDQjRsTUe67xlfST57NdrqLZg19UDxsiQVIFHbpexdMXlx Fe+uJHezShqA3RvNFyQtGFo0ZBcO6YPfSd7Ofw4KwMpFX8Y04KCww+57WkiWuUTu SrQ3CrBdcluaGZe3tmMIrYi2FDbpE4zuwjPFNMCHX0Q7QAFSD5oOvSye9OOxZpgj dA1E/CFMmcSGYE5XCGrlKLbcMAK31yeuuK6D/kLfXZHU3bmrfBMsHe7kyproMI/J NKtZ3LfvOOnOgzvbWM8MmYLvRLrdJgt/oDoANu1a1nmt4B2WsJfIHl8WxKUnborz D/LJLry6Gk20rHGTe1N29FsfKGpGjRRIRWtIV9fW/frrYnEEA9KvcF7GhC3PjtX7 0NHKrFCjyiCDlvH2ITIzbUQaGnlclQUQRwJxICA7zIqsIm1vtNGsGw5wA7QEaHou 6OXaVTu0gQPEnjgxIBmjY+fYas66T9QQaVU4AZoJwvbF574Ymn6Pi68oH4nNFBhI Nt7BuatVgUVLFYJBZNSX4KizObbwXSXeuFd8nLEBKsBoLNqiyWaz3MlLLvTyNw4X 1EFJ+mxa4AEKa26XIKc8Wj1HFugpIqJjchYJU9kGo6zz+dheGcP3gDaf1uLHkuX8 xZDE9BtR8FkV90HJhbMqMCxz2Gf8BHiog4FjB/qrQe09sXg5Ges= =X8Oe -----END PGP SIGNATURE----- --AoAwF9+1aN5uK2ck--