Re: BUG #6513: explain (analyze, buffers) and toasted fields

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #6513: explain (analyze, buffers) and toasted fields
Дата
Msg-id 27251.1331565824@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #6513: explain (analyze, buffers) and toasted fields  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: BUG #6513: explain (analyze, buffers) and toasted fields  (Marti Raudsepp <marti@juffo.org>)
Список pgsql-bugs
Robert Haas <robertmhaas@gmail.com> writes:
> ... I think that if there's an actual bug here, it's that
> EXPLAIN ANALYZE is skipping the formation of the actual output tuples,
> and therefore it's doing less work than an actual execution of the
> real query would.  I am not sure whether it would be a good idea to
> change that or not.

EXPLAIN ANALYZE *necessarily* does less work than the real query,
because it doesn't transmit the results to the client (which is going
to be a dominant cost in a lot of situations).  I'm not sure whether
running the I/O functions would provide a useful improvement in
verisimilitude or not; but one should never imagine that EXPLAIN is an
exact simulation of normal query execution.  It's meant for debugging
planner choices, anyway, and the detoast&I/O costs are going to be the
same whichever plan you choose.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #6517: Volatile function erroneously optimized, does not consider change in schema path
Следующее
От: Robert Haas
Дата:
Сообщение: Re: BUG #6517: Volatile function erroneously optimized, does not consider change in schema path