Re: different execution times of the same query

Поиск
Список
Период
Сортировка
От Viktor Rosenfeld
Тема Re: different execution times of the same query
Дата
Msg-id 20091020154014.GC1696@stan
обсуждение исходный текст
Ответ на Re: different execution times of the same query  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-general
Hi,

I suppose the same is true for the time logged with log_duration, i.e.
it does not include the time needed to transfer the data to the client?

Or is it more like \timing in that respect?

Cheers,
Viktor

Craig Ringer wrote:

> EXPLAIN ANALYZE measures the time taken to execute the query. It doesn't
> include time required to transfer results to the client, possibly write
> them to disk, etc. It's really only for examining query plans as
> compared to actual execution of that plan.
>
> If you're more interested in *total* query execution time, including
> planning, execution, and transfer of results, you should usually use
> psql's \timing command, possibly along with output redirection. eg:

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

Предыдущее
От: Sim Zacks
Дата:
Сообщение: Re: cast numeric with scale and precision to numeric plain
Следующее
От: David Wall
Дата:
Сообщение: Re: When much of a DB is large objects - PG 8.4