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

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

原文地址:https://www.cnblogs.com/keewit/p/12574505.html