Make XLOG_FPI_FOR_HINT records honor full_page_writes setting.
Fujii Masao <fujii@postgresql.org>
Make XLOG_FPI_FOR_HINT records honor full_page_writes setting. Commit 2c03216d83 changed XLOG_FPI_FOR_HINT records so that they always included full-page images even when full_page_writes was disabled. However, in this setting, they don't need to do that because hint bit updates don't need to be protected from torn writes. Therefore, this commit makes XLOG_FPI_FOR_HINT records honor full_page_writes setting. That is, XLOG_FPI_FOR_HINT records may include no full-page images if full_page_writes is disabled, and WAL replay of them does nothing. Reported-by: Zhang Wenjie Author: Kyotaro Horiguchi Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/tencent_60F11973A111EED97A8596FFECC4A91ED405@qq.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +21 −11 |
| src/backend/access/transam/xloginsert.c | modified | +1 −4 |
Discussion
- Why is XLOG_FPI_FOR_HINT always need backups? 2 messages · 2021-07-06