Re: pg_stat_statements
| От | Robert Treat |
|---|---|
| Тема | Re: pg_stat_statements |
| Дата | |
| Msg-id | 200806142214.10835.xzilla@users.sourceforge.net обсуждение исходный текст |
| Ответ на | Re: pg_stat_statements (Josh Berkus <josh@agliodbs.com>) |
| Ответы |
Re: pg_stat_statements
|
| Список | 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 по дате отправления: