본문으로 건너뛰기

wal_log_hints

버전기본값context타입
14offpostmaster (재시작)boolean
15offpostmaster (재시작)boolean
16offpostmaster (재시작)boolean
17offpostmaster (재시작)boolean
18offpostmaster (재시작)boolean
19offpostmaster (재시작)boolean

hint bit 갱신처럼 crash 안전성에 필수적이지 않은 변경에 대해서도, checkpoint 후 첫 수정 시 페이지 전체를 WAL에 기록할지 정한다. 기본값은 off이고 서버 시작 시에만 설정할 수 있다.

on이면 checkpoint 이후 각 디스크 페이지가 처음 수정될 때, 그 수정이 hint bit 변경뿐이라도 페이지 전체 내용을 WAL에 쓴다. data checksums가 활성화된 클러스터에서는 hint bit 갱신이 항상 WAL에 기록되므로 이 설정은 무시된다. 이 특성을 이용해, data checksums를 켰을 때 WAL 기록량이 얼마나 늘어날지 미리 시험해 보는 용도로도 쓸 수 있다.

운영 노트: pg_rewind로 옛 primary를 새 timeline에 다시 붙이려면 data checksums가 켜져 있거나 wal_log_hints=on이어야 한다. failover 후 재구성을 pg_rewind로 처리할 계획이라면 미리 켜 두어야 한다.

출처: PostgreSQL 18 문서