How to know which queries are to be optimised? - Mailing list pgsql-general

From Ulrich Wisser
Subject How to know which queries are to be optimised?
Date
Msg-id 4110CFE7.9000202@relevanttraffic.se
Whole thread Raw
Responses Re: How to know which queries are to be optimised?  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
Hello,

my web application grows slower and slower over time. After some
profiling I came to the conclusion that my SQL queries are the biggest
time spenders (25 seconds). Obviously I need to optimise my queries and
maybe introduce some new indexes.

The problem is, that my application uses dynamic queries. I therefor can
not determine what are the most common queries.

I have used the postgresql logging ption before. Is there a tool to
analyze the logfile for the most common and/or most time consuming queries?

TIA

Ulrich


pgsql-general by date:

Previous
From: Bernd Helmle
Date:
Subject: Re: Updateable Views?
Next
From: Bruce Momjian
Date:
Subject: Re: Test case for bug fix in 7.4.3