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 1weVYz-004q9J-1R for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Jun 2026 10:19:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1weVYx-007bWM-3B for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Jun 2026 10:19:31 +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 1weVYx-007bWD-1l for pgsql-hackers@lists.postgresql.org; Tue, 30 Jun 2026 10:19:31 +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 1weVYv-00000000tvc-0J9n for pgsql-hackers@postgresql.org; Tue, 30 Jun 2026 10:19:30 +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:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description; bh=v2PCrSXUSZdYIPq2LTfpC9m6tMalAMy/pW4QN3iTq0s=; b=n1Q/XbGf/N2dJXaNJ87E+Iq8QB FAwoOkR26vRhA4I5fBqBkkXw4a+RT+G31XTXuAtsDCRFLZodZNASAO7iFtoALvRXZj3puR5e1VuC5 n+dy8AvLF9qPHogpiUu7H4XsIUrSnYlFX2/09WyfkNvdUjv6e38lAQqL8le1/5Ae5+o3/bxtyqr0R qjsqr5mBqX7LJTjurRHV22f3fKerrdG+uJc9hj/eyzMWMHbYZViB7+7BdsDWTbcF5Susp1LHvzdqi f8UAIT9t9pS11YGu+lbegZFWXPYZUTMXjW5Jc0bRJdg+hLhliZSfU3asbh4TcVcIqNbDadzPKoDUT BUkW6Pmw==; 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 1weVYo-006zqi-1Y; Tue, 30 Jun 2026 10:19:22 +0000 Date: Tue, 30 Jun 2026 12:19:21 +0200 From: Christoph Berg To: John Naylor , PostgreSQL-development , Michael Paquier Subject: Re: [PATCH] Document wal_compression=on Message-ID: Mail-Followup-To: Christoph Berg , John Naylor , PostgreSQL-development , Michael Paquier References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="aOuCd2U3waCadW1P" Content-Disposition: inline In-Reply-To: X-Debian-User: myon List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --aOuCd2U3waCadW1P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Re: To John Naylor > Or perhaps leave the door open for picking a better default in the future? > > The value on is currently an alias for pglz. > Maybe we should also update the postgresql.conf.sample: I'm attaching v2 that implements this (without the "currently"). Christoph --aOuCd2U3waCadW1P Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename=v2-0001-Document-wal_compression-on.patch From 7aefb8d5d2d650710a4462fdad2e926035344bd0 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 29 Jun 2026 11:58:44 +0200 Subject: [PATCH v2] Document wal_compression=on This was not included when lz4 support was added in 4035cd5d4eee4dae797bfc77ab07f8dcd8781b41, but since the value is still legal and even mentioned in postgresql.conf.sample, it should be documented. Update postgresql.conf.sample to say "on" is the same as pglz. --- doc/src/sgml/config.sgml | 1 + src/backend/utils/misc/postgresql.conf.sample | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 569fc0e7dba..7bdc85539ce 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -3671,6 +3671,7 @@ include_dir 'conf.d' was compiled with ) and zstd (if PostgreSQL was compiled with ). + The value on is an alias for pglz. The default value is off. Only superusers and users with the appropriate SET privilege can change this setting. diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index ac38cddaaf9..86f2e16eba0 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -262,7 +262,7 @@ #wal_log_hints = off # also do full page writes of non-critical updates # (change requires restart) #wal_compression = off # enables compression of full-page writes; - # off, pglz, lz4, zstd, or on + # off, pglz (or "on"), lz4, or zstd #wal_init_zero = on # zero-fill new WAL files #wal_recycle = on # recycle WAL files #wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers -- 2.53.0 --aOuCd2U3waCadW1P--