2006-05-25 postgresql でクエリのログをとる linux postgresql.conf に以下の設定を追加 log_statement = true log_duration = trueこれで すべてのクエリがログファイルに保存される.