赞
踩
show variables like '%quer%';
set global slow_query_log = on
set global slow_query_log = off
show log_min_duration_statement;
log_min_duration_statement=10000;
log_destination = 'csvlog' #开了这个后,下面log_filename指定的log后缀文件将不会有内容,全部在csv文件中
logging_collector = on
log_directory = 'pg_log' #当前目录下的pg_log文件夹
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
select pg_reload_conf();
begin TRANSACTION;
select pg_sleep(5);
select now() ;
END TRANSACTION;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。