Skip site navigation (1) Skip section navigation (2)


From: "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com>
To: "Y Sidhu" <ysidhu(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Parsing VACUUM VERBOSE
Date: 2007-06-14 21:01:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On 6/14/07, Y Sidhu <ysidhu(at)gmail(dot)com> wrote:
> Can anyone share what value they have set log_min_duration_statement to?

It's OT but we use different values for different databases and needs.

On a very loaded database with a lot of complex queries (lots of join
on big tables, proximity queries, full text queries), we use 100 ms.
It logs ~ 300 000 queries. It allows us to detect big regressions or
new queries which are very slow.

On another database where I want to track transaction leaks, I'm
forced to put it to 0ms.

Basically, the answer is: set it to the lowest value you can afford
without impacting too much your performances (and if you use syslog,
use async I/O or send your log to the network).


In response to


pgsql-performance by date

Next:From: Y SidhuDate: 2007-06-14 21:34:13
Subject: Re: Parsing VACUUM VERBOSE
Previous:From: Y SidhuDate: 2007-06-14 15:30:21
Subject: Re: Parsing VACUUM VERBOSE

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group