pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jacques Caron <jc@directinfos.com>
To: Dan Harris <fbsd@drivefaster.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: investigating slow queries through
Date: Mon, 20 Jun 2005 20:45:54 +0200
Message-ID: <6.2.0.14.0.20050620204307.039e9e78@pop.interactivemediafactory.net> (raw)
In-Reply-To: <0B5C29FA-E949-447E-AEFE-A806E238F1C2@drivefaster.net>
References: <0B5C29FA-E949-447E-AEFE-A806E238F1C2@drivefaster.net>

Hi,

At 19:55 20/06/2005, Dan Harris wrote:
>Also, I'm sure some people will respond with "turn on query
>logging".. I've explored that option and the formatting of the log
>file and the fact that EVERY query is logged is not what I'm after
>for this project.

You can log just those queries that take "a little bit too much time". See 
log_min_duration_statement in postgresql.conf. Set it really high, and 
you'll only get those queries you're after.

Jacques.





Message-ID: <6.2.0.14.0.20050620204307.039e9e78@pop.interactivemediafactory.net>
Permalink:  ../6.2.0.14.0.20050620204307.039e9e78@pop.interactivemediafactory.net/
Also on:    postgresql.org/message-id/6.2.0.14.0.20050620204307.039e9e78@pop.interactivemediafactory.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 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: jc@directinfos.com, fbsd@drivefaster.net
  Subject: Re: investigating slow queries through
  In-Reply-To: <6.2.0.14.0.20050620204307.039e9e78@pop.interactivemediafactory.net>
  References: <0B5C29FA-E949-447E-AEFE-A806E238F1C2@drivefaster.net> <6.2.0.14.0.20050620204307.039e9e78@pop.interactivemediafactory.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