Re: RFC: built-in historical query time profiling - Mailing list pgsql-hackers

From Mark Kirkwood
Subject Re: RFC: built-in historical query time profiling
Date
Msg-id 4241F7AD.8000503@paradise.net.nz
Whole thread Raw
In response to RFC: built-in historical query time profiling  ("Ed L." <pgsql@bluepolka.net>)
Responses Re: RFC: built-in historical query time profiling
List pgsql-hackers
Ed L. wrote:
> Hackers,
> (some snippage...)
> Our Problem:  We work with 75+ geographically distributed pg 
> clusters; it is a significant challenge keeping tabs on 
> performance.  We see degradations from rogue applications, 
> vacuums, dumps, bloating indices, I/O and memory shortages, and 
> so on.  Customers don't generally tell us when applications are 
> slow, so we need to know for ourselves in a timely manner.  At 
> present, we can remotely and systematically query system 
> relations for diskspace usage, detailed I/O usage, 
> index/sequential scans, and more.  But our _ultimate_ DB 
> performance measure is query execution time.  Obviously, you can 
> measure that now in an ad hoc fashion with EXPLAIN ANALYZE, and 
> by examining historical logs.  But we need to be able to see the 
> history in a timely fashion to systematically identify 
> customer-experienced execution time degradations for "query 
> patterns of interest" without any visual log inspection 
> whatsoever, and correlate those with other events.

Is enabling the various postgresql.conf stats* options and taking 
regular snapshots of pg_stat_activity a possible way to get this?

regards

Mark


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: RFC: built-in historical query time profiling
Next
From: "Ed L."
Date:
Subject: Re: RFC: built-in historical query time profiling