postgres - show logslow slow query slowquery 慢查询

访问量: 635

refer to: https://tableplus.com/blog/2018/10/how-to-show-queries-log-in-postgresql.html

配置文件:

log_statement = 'all'
log_directory = 'pg_log'
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
logging_collector = on
log_min_error_statement = error

就可以了。

订阅/RSS Feed

Subscribe