Re: Measuring CPU time use? (Another stupid question)
| От | Joe Conway |
|---|---|
| Тема | Re: Measuring CPU time use? (Another stupid question) |
| Дата | |
| Msg-id | 3E00CDEF.60601@joeconway.com обсуждение исходный текст |
| Ответ на | Measuring CPU time use? (Another stupid question) (Jessica Blank <jb@twu.net>) |
| Ответы |
Re: Measuring CPU time use? (Another stupid question)
|
| Список | pgsql-general |
Jessica Blank wrote: > I wish to find a way to measure the CPU time used by any given query (or > set of queries). > > I could not find any information on how to do this... > > Is there some secret internal table (like the V$ virtual tables in Oracle) > that contains this info? Well, I don't know of anything specific to CPU usage, but for monitoring your server see Monitoring Database Activity in the manual: http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/monitoring.html Also, one of the best and most commonly used tools for optimizing individual queries is EXPLAIN ANALYZE; see: http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/sql-explain.html HTH, Joe
В списке pgsql-general по дате отправления: