본문으로 건너뛰기
recovery_target_timeline

recovery_target_timeline

버전기본값context타입
14userstring
15userstring
16userstring
17userstring
18userstring
19userstring

recovery가 어느 timeline을 따라 진행될지 지정한다. recovery가 진행 중일 때만 의미가 있다.

값은 숫자 timeline ID 또는 특수 값이다. current는 base backup을 받은 시점의 timeline을 그대로 따라가고, 기본값 latest는 archive에서 찾은 가장 최신 timeline으로 recovery한다 — standby 서버에서 유용한 동작이다. WAL 파일 이름이나 history 파일에서 추출한 timeline ID를 16진수로 지정하려면 0x 접두사를 붙인다. 예를 들어 WAL 파일 이름이 00000011000000A10000004F라면 timeline ID는 0x11(10진수 17)이다.

PITR을 한 번 수행한 뒤 만들어진 상태로 다시 되돌아가야 하는 복잡한 재-recovery 상황이 아니라면 보통 이 파라미터를 손댈 일은 없다.

출처: PostgreSQL 18 문서