From: Bryan Murphy <bryan.murphy@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: How to ENABLE SQL capturing???
Date: Wed, 8 Aug 2007 15:57:52 -0500
Message-ID: <bd8531800708081357i4f14b41axb0f19e444dc47a6e@mail.gmail.com> (raw)
In-Reply-To: <20070808203612.GA26143@uio.no>
References: <12060736.post@talk.nabble.com>
<20070808203612.GA26143@uio.no>
we currently have logging enabled for all queries over 100ms, and keep
the last 24 hours of logs before we rotate them. I've found this tool
very helpful in diagnosing new performance problems that crop up:
http://pgfouine.projects.postgresql.org/
Bryan
On 8/8/07, Steinar H. Gunderson <sgunderson@bigfoot.com> wrote:
> On Wed, Aug 08, 2007 at 01:02:24PM -0700, smiley2211 wrote:
> > I am trying to enable capturing of the submitted code via an
> > application...how do I do this in Postgres? Performance is SLOW on my
> > server and I have autovacuum enabled as well as rebuilt indexes...whatelse
> > should be looked at?
>
> Try "log_min_duration_statement = 100" in postgresql.conf; it will show all
> statements that take more than 100ms. Set to 0 to log _all_ statements, or
> -1 to turn the logging back off.
>
> /* Steinar */
> --
> Homepage: http://www.sesse.net/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
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: bryan.murphy@gmail.com
Subject: Re: How to ENABLE SQL capturing???
In-Reply-To: <bd8531800708081357i4f14b41axb0f19e444dc47a6e@mail.gmail.com>
References: <12060736.post@talk.nabble.com> <20070808203612.GA26143@uio.no> <bd8531800708081357i4f14b41axb0f19e444dc47a6e@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