Re: Determine query run-time from pg_* tables

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Determine query run-time from pg_* tables
Дата
Msg-id 20071023134356.GJ5772@alvh.no-ip.org
обсуждение исходный текст
Ответ на Determine query run-time from pg_* tables  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Ответы Re: Determine query run-time from pg_* tables  (Erik Jones <erik@myemma.com>)
Список pgsql-general
Ow Mun Heng wrote:
> Hi,
>
> Is there a method to obtain the query's runtime from any of the pg_*
> tables?

No.  You can use log_durations and log_statement for that.  We don't
store that info in tables.

> Right now, I'm only seeing the backend_start_time (from
> pg_stat_activity) (and I'm also not sure how to interpret this.

This is the time that the session was started.  Nothing to do with the
query itself.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Bitmap Heap scan 8.1/8.2
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: autovacuum and locks