如何让postgresql日志记录所有的执行语句

postgresql.conf文件里头,
#log_statement = 'none' # none, ddl, mod, all
把注释取消,值设置为all
还有很多其它关于log的开关,你可以逐一尝试。

posted @ 2020-03-26 14:57  奇微  阅读(1721)  评论(0编辑  收藏  举报