본문으로 건너뛰기
log_replication_commands

log_replication_commands

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

replication command와 walsender process의 replication slot 획득·해제를 서버 log에 남긴다.

이 파라미터를 켜면 streaming 연결에서 오가는 각 replication command(IDENTIFY_SYSTEM, START_REPLICATION, CREATE_REPLICATION_SLOT 등)와, walsender process가 replication slot을 획득하고 해제하는 이벤트가 기록된다. 기본값은 off다.

운영 노트: standby나 logical replication 구독의 연결이 예상과 다르게 끊기거나 slot 동작이 의심스러울 때 켜면 원인 파악에 도움이 된다. replication 연결 수가 많지 않다면 log 볼륨 부담도 크지 않다.

출처: PostgreSQL 18 문서