Mac OS X上的PostgreSQL日志在哪里? [英] Where are the PostgreSQL logs on Mac OS X?

查看:107
本文介绍了Mac OS X上的PostgreSQL日志在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想看一下PostgreSQL日志文件,看看我的应用程序写了些什么,但是找不到.

I would like to take a look at the PostgreSQL log files to see what my app writes to them but I can't find them.

有什么想法吗?

推荐答案

在OS X上,如果使用的是EnterpriseDB安装的PostgreSQL,则日志文件将位于/Library/PostgreSQL/8.4/data/pg_log

On OS X, if you're using the EnterpriseDB installation of PostgreSQL, your log files will be in /Library/PostgreSQL/8.4/data/pg_log

当然,您要用8.4代替您正在运行的任何版本号.

Of course, you'll want to substitute 8.4 for whichever version number you're running.

这篇关于Mac OS X上的PostgreSQL日志在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆