Postgres log_duration设置记录SQL执行时间

来源:互联网 发布:大数据交易市场 编辑:程序博客网 时间:2024/05/18 01:23

log_duration设置记录SQL执行时间

log_duration设置记录SQL执行时间

日志:  语句: alter system set log_duration =on;

日志:  断开连接: 会话时间: 0:00:18.418 user=highgodatabase=highgo host=[local]

日志:  接收到SIGHUP, 重载配置文件

日志:  参数"log_duration"被改为"on"

日志:  已接收到连接: 主机=[local]

日志:  联接认证: 主机=highgo 数据库=highgo

错误:  语法错误 在 "selct" 或附近的 第 1 个字符处

语句:  selct * from test;

日志:  执行时间: 9.121 ms
原创粉丝点击