Postgresqlのログ出力先(Ubuntu)
Ubuntuですが探すのに時間かかったのでメモ。
・Postgresqlのログの場所
/var/log/postgresql/postgresql-(version)-main.log
・設定ファイル(pg_hba.conf、postgresql.conf等)の場所
/etc/postgresql/(version)/main/
ちなみに設定ファイルの記述間違いはログを見ると以下のように出力されます。
FATAL : configuration file "/etc/postgresql/(version)/main/postgresql.conf" contains errors
チューニングのヒントもそっと教えてくれます。
HINT: Consider increasing the configuration parameter "max_wal_size".