Why is XLOG_FPI_FOR_HINT always need backups?

zwj <757634191@qq.com>

From: zwj <757634191@qq.com>
To: pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-07-06T09:58:15Z
Lists: pgsql-hackers

Attachments

Hi all,


When I read the source code file src/backend/access/transam/xloginsert.c, I get something confused me.
In the function XLogSaveBufferForHint, the flags are always REGBUF_FORCE_IMAGE which means it is always need backups.
Is it right? Why do not check the full_page_writes?




--
Zhang Wenjie

Commits

  1. Make XLOG_FPI_FOR_HINT records honor full_page_writes setting.