From: Gourish Singbal <gourish@gmail.com>
To: weigelt@metux.de, pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: measuring most-expensive queries
Date: Mon, 2 May 2005 10:41:52 +0530
Message-ID: <674d1f8a0505012211d858cb6@mail.gmail.com> (raw)
In-Reply-To: <20050502031830.GC24546@nibiru.borg.metux.de>
References: <20050502031830.GC24546@nibiru.borg.metux.de>
You could have made the following change in your conf file and reload
the postgresql server.
log_min_duration_statement = 10000
This will help you log the queries that take more than 10000 mili
seconds to execute in your postgresql sever log file
regards
Gourish Singbal
On 5/2/05, Enrico Weigelt <weigelt@metux.de> wrote:
>
> Hi folks,
>
> I'd like to find out which queries are most expensive (taking very
> long or producing high load) in a running system, to see what
> requires further optimization. (the application is quite large
> and some more folks involved, so I cant check evrything manually).
>
> Well, the postmaster can log ev'ry single statement, but its
> really too for a human person, to read the log files.
>
> Is there any tool for that ?
>
> thx
> --
> ---------------------------------------------------------------------
> Enrico Weigelt == metux IT service
> phone: +49 36207 519931 www: http://www.metux.de/
> fax: +49 36207 519932 email: contact@metux.de
> ---------------------------------------------------------------------
> Realtime Forex/Stock Exchange trading powered by postgresSQL :))
> http://www.fxignal.net/
> ---------------------------------------------------------------------
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
--
Best,
Gourish Singbal
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-admin@postgresql.org
Cc: gourish@gmail.com
Subject: Re: measuring most-expensive queries
In-Reply-To: <674d1f8a0505012211d858cb6@mail.gmail.com>
References: <20050502031830.GC24546@nibiru.borg.metux.de> <674d1f8a0505012211d858cb6@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