Log PostgreSQL messages.