Re: pg_stat_statements and planning time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_stat_statements and planning time
Дата
Msg-id 8309.1331136428@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_stat_statements and planning time  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: pg_stat_statements and planning time
Re: pg_stat_statements and planning time
Список pgsql-hackers
Fujii Masao <masao.fujii@gmail.com> writes:
> In the patch, I didn't change the column name "total_time" meaning
> the time spent in the executor because of the backward compatibility.
> But once new column "plan_time" is added, "total_time" is confusing and
> ISTM it should be renamed...

Well, if we were tracking planning time, what I would expect
"total_time" to mean is plan time plus execution time.  Should it be
redefined that way, instead of renaming it?

Another point here is that because of plan caching, the number of
planner invocations could be quite different from the number of executor
runs.  It's not clear to me whether this will confuse matters for
pg_stat_statements, but it's something to think about.  Will it be
possible to tell whether a particular statement is hugely expensive to
plan but we don't do that often, versus cheap to plan but we do that a
lot?  IOW I am wondering if we need to track the number of invocations
as well as total time.
        regards, tom lane


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: review: CHECK FUNCTION statement
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: a slightly stale comment