Re: log_duration and \timing times repeatably much higher than "Total runtime" from explain analyze

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: log_duration and \timing times repeatably much higher
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Partial indices...