log_replication_commands
| 버전 | 기본값 | context | 타입 |
|---|---|---|---|
| 14 | off | superuser | boolean |
| 15 | off | superuser | boolean |
| 16 | off | superuser | boolean |
| 17 | off | superuser | boolean |
| 18 | off | superuser | boolean |
| 19 | off | superuser | boolean |
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 문서