在postgresql am更改postgresql.conf file.But的以下设置时,日志文件显示为空。我要记录从postgresql返回的所有错误。
log_destination = 'stderr,csvlog,syslog'
logging_collector = on
log_directory = 'pg_log'
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
syslog_facility = 'LOCAL7'
syslog_ident = 'postgres' log_min_duration_statement = 0
log_statement = 'all'
发布于 2017-07-05 10:08:15
设置以下内容:
log_min_error_statement = error
log_min_messages = error
在更改postgresql.conf
之后,不要忘记运行pg_ctl reload
。
https://stackoverflow.com/questions/44921677
复制相似问题