Re: Does EXPLAIN ANALYZE show a wrong plan for MIN/MAX?

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Does EXPLAIN ANALYZE show a wrong plan for MIN/MAX?
Дата
Msg-id 20051111112128.GD13177@svana.org
обсуждение исходный текст
Ответ на Does EXPLAIN ANALYZE show a wrong plan for MIN/MAX?  (Matteo Beccati <php@beccati.com>)
Ответы Re: Does EXPLAIN ANALYZE show a wrong plan for MIN/MAX?  (Matteo Beccati <php@beccati.com>)
Re: Does EXPLAIN ANALYZE show a wrong plan for MIN/MAX?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Nov 11, 2005 at 11:05:45AM +0100, Matteo Beccati wrote:
> Hi,
>
> I've noticed that sometimes EXPLAIN ANALYZE is much slower than the
> plain query. After investigating I found that it happens when using MIN
> or MAX aggregates.
>
> It seems that the plan outputted is not the optimized one (available
> since 8.1) that is really used when running the plain query.

It may also be that the overhead of calling gettimeofday() several
times per tuple is blowing the time out. What platform is this?

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

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

Предыдущее
От:
Дата:
Сообщение: Postgresql 8.1 XML2
Следующее
От: Matteo Beccati
Дата:
Сообщение: Re: Does EXPLAIN ANALYZE show a wrong plan for MIN/MAX?