Re: explain analyze query execution time

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: explain analyze query execution time
Дата
Msg-id CAMkU=1wFOAL726P9e18i1pZePu1QE++JfdFGSD1p2_e8eEAfHw@mail.gmail.com
обсуждение исходный текст
Ответ на explain analyze query execution time  (Rudyar <rudyar.cortes@gmail.com>)
Список pgsql-hackers
On 11/21/11, Rudyar <rudyar.cortes@gmail.com> wrote:
> Hello,
>
> I try to get the execution time of a query workload. I try using explain
> analyze but this time is allways higher than
> the execution time of a query across a client like pgadmin3
>
> what is the reason about that difference?

Analyze has to do a lot of gettimeofday calls and other bookkeeping,
and that takes time.  If the data queried is all in memory, this
analyze overhead can be far more than the query itself.

Jeff


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: strange nbtree corruption report
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: Rename a database that has connections