Re: min duration logging

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: AA <araskoktas(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: min duration logging
Date: 2011-10-11 19:52:35
Message-ID: 4E949E83.20603@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 10/11/2011 11:23 AM, AA wrote:
> hey all
> trying to find non optimized queries and want to use this logging
> feature, however postgresql seems to write every query to log.
>
> my conf is as follows...
>
> log_min_duration_statement = 450
> ...

What durations are showing in the log? Are lots/all of the queries you
run longer than 450ms?

> #log_statement = 'all'
>

I don't know what the config looked like beforehand but did you reload
PostgreSQL after changing it? You can check the current running settings
with "show all;"

Cheers,
Steve

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message gabriel12345 2011-10-11 20:15:36 Re: Contents of WAL files
Previous Message AA 2011-10-11 18:23:40 min duration logging