类型: | bool |
默认: | off |
上下文: | superuser |
重新开始: | false |
以来: | 9.5 |
当这个参数为on
时,如果full_page_writes 为打开或者处于基础备份期间,PostgreSQL服务器 会压缩写入到 WAL 中的完整页面镜像。压缩页面镜像将在 WAL 重放时 被解压。默认值为off
。只有超级用户可以更改这个设置。
打开这个参数可以减小 WAL 所占的空间且无需承受不可恢复的数据损坏风险, 但是代价是需要额外的 CPU 开销以便在 WAL 记录期间进行压缩以及在 WAL 重放时解压。
建议 [EN]
… unless your storage is less constrained than your CPU.
在 StackOverflow
在 pgsql-hackers
- v13: CLUSTER segv with wal_level=minimal and parallel index creation
- Add statistics to pg_stat_wal view for wal related parameter tuning
- Re: Add statistics to pg_stat_wal view for wal related parameter tuning
- Re: New statistics for tuning WAL buffer size
- Re: Batching page logging during B-tree build