Re: How to tell what your postgresql server is doing

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: How to tell what your postgresql server is doing
Дата
Msg-id 4265E6E5.9010805@familyhealth.com.au
обсуждение исходный текст
Ответ на How to tell what your postgresql server is doing  (Jeff Frost <jeff@frostconsultingllc.com>)
Список pgsql-performance
> Is there a way to look at the stats tables and tell what is jamming up
> your postgres server the most?  Other than seeing long running queries
> and watch top, atop, iostat, vmstat in separate xterms...I'm wondering
> if postgres keeps some stats on what it spends the most time doing or if
> there's a way to extract that sort of info from other metrics it keeps
> in the stats table?
>
> Maybe a script which polls the stats table and correlates the info with
> stats about the system in /proc?

Turn on logging of all queries, sample for a few hours or one day.  Then
  run Practical Query Analyzer (PQA on pgfoundry.org) over it to get
aggregate query information.

Chris

В списке pgsql-performance по дате отправления:

Предыдущее
От: Jeff Frost
Дата:
Сообщение: How to tell what your postgresql server is doing
Следующее
От: "J. Andrew Rogers"
Дата:
Сообщение: Re: Opteron vs Xeon (Was: What to do with 6 disks?)