]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Document wal_compression=on
authorJohn Naylor <john.naylor@postgresql.org>
Wed, 1 Jul 2026 01:50:08 +0000 (08:50 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Wed, 1 Jul 2026 01:54:36 +0000 (08:54 +0700)
Commit 4035cd5d4 added LZ4 compression for full-page writes in WAL, and
retained "on" as a backward-compatible way to specify the builtin PGLZ
method. Document this meaning of "on" and update postgresql.conf.sample
to make the equivalence clear.

Author: Christoph Berg <myon@debian.org>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/akJDHRtXwGLTppsQ@msg.df7cb.de
Backpatch-through: 15

doc/src/sgml/config.sgml
src/backend/utils/misc/postgresql.conf.sample

index 6a0bb6d1344f76ecb845b26e0a52e05d74293ac7..c691f055b68c7b85de107ff19bcfd523d13ba9b0 100644 (file)
@@ -3671,6 +3671,7 @@ include_dir 'conf.d'
         was compiled with <option>--with-lz4</option>) and
         <literal>zstd</literal> (if <productname>PostgreSQL</productname>
         was compiled with <option>--with-zstd</option>).
+        The value <literal>on</literal> is a historical spelling of <literal>pglz</literal>.
         The default value is <literal>off</literal>.
         Only superusers and users with the appropriate <literal>SET</literal>
         privilege can change this setting.
index ac38cddaaf9a663e6389dde4329193003ea7636e..86f2e16eba0d172be5c2c12ab499efad6b28662a 100644 (file)
 #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