ubuntu 中 postgresql 的 pg_log 目录?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34449719/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
pg_log directory for postgresql in ubuntu?
提问by eugene
I followed instruction on http://pydanny-event-notes.readthedocs.org/en/latest/DjangoConEurope2012/10-steps-to-better-postgresql-performance.html
我按照http://pydanny-event-notes.readthedocs.org/en/latest/DjangoConEurope2012/10-steps-to-better-postgresql-performance.html 上的说明进行操作
it says to set log_directory = pg_log
它说要设置 log_directory = pg_log
where's that directory in ubuntu? :(
ubuntu 中的那个目录在哪里?:(
回答by pmverma
Under postgres data directory something like /var/lib/postgresql/9.3/main/pg_log
在 postgres 数据目录下类似 /var/lib/postgresql/9.3/main/pg_log
回答by klin
select format('%s/%s',
current_setting('data_directory'),
current_setting('log_directory'));