pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin A. Brooks <martin@antibodymx.net>
To: Guillaume Lelarge <guillaume@lelarge.info>
Cc: pgsql-admin@postgresql.org
Subject: Re: postgres seems to ignore log_min_duration_statement
Date: Tue, 14 Oct 2008 11:30:35 +0100
Message-ID: <48F474CB.3060302@antibodymx.net> (raw)
In-Reply-To: <48F4710A.1030609@lelarge.info>
References: <48F46514.1070203@antibodymx.net>
	<48F4710A.1030609@lelarge.info>

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.


-- 
Martin A. Brooks |  http://www.antibodymx.net/ | Anti-spam & anti-virus
   Consultant    |  martin@antibodymx.net      | filtering. Inoculate
 antibodymx.net  |  m: +447792493388           | your mail system.




view thread (9+ messages)  latest in thread

Message-ID: <48F474CB.3060302@antibodymx.net>
Permalink:  ../48F474CB.3060302@antibodymx.net/
Also on:    postgresql.org/message-id/48F474CB.3060302@antibodymx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: martin@antibodymx.net, guillaume@lelarge.info
  Subject: Re: postgres seems to ignore log_min_duration_statement
  In-Reply-To: <48F474CB.3060302@antibodymx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox