Comments regarding safety of Postgres logging code