Display Postgres server logs output in terminal and record to logs at same time

后端 未结 2 865
广开言路
广开言路 2020-12-18 05:48

I\'m running Postgres 9.1 (Homebrew installation on Mac OSX) and I\'d like to monitor my postgres server more closely.

My question relates to logs. I\'d like to get

2条回答
  •  离开以前
    2020-12-18 06:35

    You could watch the log with the command:

    tail -f /usr/local/var/postgres/server.log
    

提交回复
热议问题