pgconfigurator
pgconfigurator

log_disconnections

No restart — reload (superuser)tuned by pgconfiguratorboolean (on/off)

Logs each client disconnection, including session duration.

What pgconfigurator would set
32 GB · 8 vCPU · NVMe · OLTP
Computing…
Tune for your exact server → /tunecomputed in your browser · nothing uploaded

What it does

Complements log_connections by recording when sessions end and how long they lasted. Pairing the two lets you reconstruct session lifetimes and catch unexpectedly long-lived or rapidly-cycling connections.

How to tune it

Enable alongside log_connections for auditing. The session-duration figure is handy for spotting connection leaks (sessions that live far longer than expected).

Related parameters