Re: postgres query log analysis?

From: Chris <dmagick(at)gmail(dot)com>
To: George Pavlov <gpavlov(at)mynewplace(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: postgres query log analysis?
Date: 2006-10-10 04:18:57
Message-ID: 452B1F31.5030303@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

George Pavlov wrote:
>> Look into pgfouine on pgFoundry.
>> http://pgfoundry.org/projects/pgfouine/
>
> thanks! definitely much better, but still not entirely believable, at
> least on first try. e.g. i have a query with 4 conditions in the ORDER
> BY. pgfouine reports show the query as having the last 3 of those
> repeated 18 times! it also fails to normalize a lot of the queries
> (seems related to prepared statements). the "queries by type" and the
> "hourly reports" are way off (the "queries by type" table has no rows,
> the total queries in the hourly statistics section do not match the
> number of queries count in the "overall statistics" section and the
> select and "write" queries parts all show as 0). all of these problems
> are in syslog mode, stderr mode is probably a bit worse. i will play
> with the tool some more and try to diagnose the various problems better.

Narrow down the problems it's having to some sample cases and post
bug-reports. That's the best way to contribute and "fix" the problem.

--
Postgresql & php tutorials
http://www.designmagick.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2006-10-10 04:30:30 Re: query optimization with UDFs
Previous Message Jonathan Greenberg 2006-10-10 03:43:53 Newbie question about importing text files...