В файле конфигурации PostgreSQL: log_duration = true log_pid = true log_statement = true log_timestamp = true