본문으로 건너뛰기
recovery_target_lsn

recovery_target_lsn

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

recovery를 어느 WAL 위치(LSN)까지 진행할지 지정한다. recovery가 진행 중일 때만 의미가 있다.

값은 시스템 데이터 타입 pg_lsn 형식으로 해석된다. 정확한 정지 지점은 recovery_target_inclusive의 영향도 함께 받는다. 시각이나 트랜잭션 ID보다 정밀하게 복구 지점을 지정할 수 있어, pg_waldump 등으로 문제가 시작된 WAL 위치를 파악해 둔 경우 PITR target으로 쓰기 좋다.

출처: PostgreSQL 18 문서