The recent PostgreSQL commit changes the default TOAST compression tolz4when LZ4 support is available, based on the rationale that LZ4 is generally more efficient thanpglzin terms of CPU usage and compression ratio.Given that, should we also consider changing the default compression method used bywal_compression = onfrompglztolz4?
Currently,wal_compression = onstill maps topglz, whilelz4has to be selected explicitly with:
wal_compression = lz4
If LZ4 is now considered stable and preferable enough to become the default for TOAST compression, it may be worth aligning WAL compression behavior as well, or at least discussing whetheronshould continue to implypglz.