Re: postgres seems to ignore log_min_duration_statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin A. Brooks a écrit :
> Guillaume Lelarge wrote:
>> Martin A. Brooks a écrit :
>>  
>>> However, in the log files, I'm seeing entries for all SQL executed, not
>>> just that taking 5000ms or more. For example:
>>>
>>> 2008-10-14 10:15:50 BST PID:20349 DB:vhdb LOG:  statement: select * from
>>> vendors;
>>> 2008-10-14 10:15:50 BST PID:20349 DB:vhdb LOG:  duration: 0.259 ms
>>> 2008-10-14 10:15:50 BST PID:20349 DB:vhdb LOG:  QUERY STATISTICS
>>> 2008-10-14 10:15:50 BST PID:20349 DB:vhdb DETAIL:  ! system usage stats:
>>>        !       0.000281 elapsed 0.000000 user 0.000000 system sec
>>>        !       [0.004000 user 0.004000 sys total]
>>>        !       0/0 [0/176] filesystem blocks in/out
>>>        !       0/0 [0/923] page faults/reclaims, 0 [0] swaps
>>>        !       0 [0] signals rcvd, 0/0 [0/0] messages rcvd/sent
>>>        !       0/0 [8/0] voluntary/involuntary context switches
>>>        ! buffer usage stats:
>>>        !       Shared blocks:          0 read,          0 written,
>>> buffer hit rate = 100.00%
>>>        !       Local  blocks:          0 read,          0 written,
>>> buffer hit rate = 0.00%
>>>        !       Direct blocks:          0 read,          0 written
>>>
>>>     
>>
>> This last log is enabled with the log_statement_stats parameter. Set it
>> to off to disable it.
>>
>>   
> 
> I _want_ the stats, however I _only_ want the stats for queries taking
> over 5 seconds.
> 

Well, AFAIK, you can't.


-- 
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux