| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера