Re: log_duration and \timing times repeatably much higher than "Total runtime" from explain analyze
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: log_duration and \timing times repeatably much higher than "Total runtime" from explain analyze |
| Дата | |
| Msg-id | 27207.1065891240@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: log_duration and \timing times repeatably much higher than "Total runtime" from explain analyze (Greg Stark <gsstark@mit.edu>) |
| Ответы |
Re: log_duration and \timing times repeatably much higher than "Total runtime" from explain analyze
|
| Список | pgsql-general |
Greg Stark <gsstark@mit.edu> writes:
> What's really strange is that some other
> queries perform fine but this one and a few others reliably takes this long
> and behaves this way under explain analyze. It's as if there's something
> specific about this query that triggers the delay.
You haven't shown us the query (naughty naughty) but I'm wondering about
extremely-expensive-to-evaluate immutable functions. An immutable
function applied to constant arguments will be evaluated in the planner.
The difference between total time and run time has to be essentially all
parse/rewrite/plan time, and the query doesn't look complex enough to be
needing a full second to plan without some, um, outside help.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера