From: Guillaume Smet <guillaume.smet@gmail.com>
To: Y Sidhu <ysidhu@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Parsing VACUUM VERBOSE
Date: Thu, 14 Jun 2007 23:01:54 +0200
Message-ID: <1d4e0c10706141401u2ae5ff73x61a86973b13f6133@mail.gmail.com> (raw)
In-Reply-To: <b09064f30706140830g6d2e19d4v3059eb2be23292fb@mail.gmail.com>
References: <f4rjfa$1187$1@news.hub.org>
<200706141653.33808.dfontaine@hi-media.com>
<b09064f30706140830g6d2e19d4v3059eb2be23292fb@mail.gmail.com>
On 6/14/07, Y Sidhu <ysidhu@gmail.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).
--
Guillaume
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: guillaume.smet@gmail.com, ysidhu@gmail.com
Subject: Re: Parsing VACUUM VERBOSE
In-Reply-To: <1d4e0c10706141401u2ae5ff73x61a86973b13f6133@mail.gmail.com>
References: <f4rjfa$1187$1@news.hub.org> <200706141653.33808.dfontaine@hi-media.com> <b09064f30706140830g6d2e19d4v3059eb2be23292fb@mail.gmail.com> <1d4e0c10706141401u2ae5ff73x61a86973b13f6133@mail.gmail.com>
* 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