Re: WAL compression setting after PostgreSQL LZ4 default change
Christoph Berg <myon@debian.org>
From: Christoph Berg <myon@debian.org>
To: Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: Michael Paquier <michael@paquier.xyz>, Japin Li <japinli@hotmail.com>, Fujii Masao <masao.fujii@gmail.com>, wenhui qiu <qiuwenhuifx@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>, John Naylor <johncnaylorls@gmail.com>
Date: 2026-07-07T22:58:59Z
Lists: pgsql-hackers
Re: Jelte Fennema-Nio > A small correction though: "on" isn't the default. The default is > "off". So this would only impact users who changed the setting in > their cluster to "on" at some point in the past when lz4/zstd support > did not exist yet. So we wouldn't be changing the default. We'd be > changing the behavior for people who changed their default setting at > some point. If someone just wants compression and not bother with the ugly details of compression algorithms, they might be inclined to just say "on". By labelling one of the choices with this "easy" value, we are effectively promoting pglz as a good choice. (I'm definitely one of those people, if you give me too many options, I will look for some hint what to do or walk away. Now 3 isn't "too many" but you get the idea.) I would like to see "on" to be moved to some better value (likely lz4, like toast compression), and if some day, there is yet a better choice, we should move it again. Christoph