Re: pg_stat_statements - Mailing list pgsql-hackers

From Robert Treat
Subject Re: pg_stat_statements
Date
Msg-id 200806142214.10835.xzilla@users.sourceforge.net
Whole thread Raw
In response to Re: pg_stat_statements  (Josh Berkus <josh@agliodbs.com>)
Responses Re: pg_stat_statements  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-hackers
On Friday 13 June 2008 12:58:22 Josh Berkus wrote:
> ITAGAKI Takahiro wrote:
> > Hello,
> >
> > Postgres 8.4 has pg_stat_user_functions view to track number of calls of
> > stored functions and time spent in them. Then, I'm thinking a "sql
> > statement" version of similar view -- pg_stat_statements.
>
> I can see how this would be useful, but I can also see that it could be a
> huge performance burden when activated.  So it couldn't be part of the
> standard statistics collection.
>

A lower overhead way to get at this type of information is to quantize dtrace 
results over a specific period of time.  Much nicer than doing the whole 
logging/analyze piece.

-- 
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: log_filename()
Next
From: Tom Lane
Date:
Subject: Re: SSL configure patch