Re: Fuzzy cost comparison to eliminate redundant planning

Поиск
Список
Период
Сортировка
Искать
От
Joe Conway
Тема
Re: Fuzzy cost comparison to eliminate redundant planning
Дата
Msg-id
40677C93.7070405@joeconway.com
Ответ на
Список
Дерево обсуждения
Fuzzy cost comparison to eliminate redundant planning work Tom Lane <tgl@sss.pgh.pa.us>
Re: Fuzzy cost comparison to eliminate redundant planning Bruce Momjian <pgman@candle.pha.pa.us>
Re: Fuzzy cost comparison to eliminate redundant planning work Tom Lane <tgl@sss.pgh.pa.us>
Re: Fuzzy cost comparison to eliminate redundant planning Bruce Momjian <pgman@candle.pha.pa.us>
Re: Fuzzy cost comparison to eliminate redundant planning Tom Lane <tgl@sss.pgh.pa.us>
Re: Fuzzy cost comparison to eliminate redundant planning Bruce Momjian <pgman@candle.pha.pa.us>
Re: Fuzzy cost comparison to eliminate redundant planning Tom Lane <tgl@sss.pgh.pa.us>
Re: Fuzzy cost comparison to eliminate redundant planning Mike Mascari <mascarm@mascari.com>
Re: Fuzzy cost comparison to eliminate redundant planning work Tom Lane <tgl@sss.pgh.pa.us>
Re: Fuzzy cost comparison to eliminate redundant planning Joe Conway <mail@joeconway.com>
Re: Fuzzy cost comparison to eliminate redundant planning work Tom Lane <tgl@sss.pgh.pa.us>
Re: Fuzzy cost comparison to eliminate redundant planning Neil Conway <neilc@samurai.com>
Re: Fuzzy cost comparison to eliminate redundant planning Joe Conway <mail@joeconway.com>
Tom Lane wrote:
> As an experiment, I made the attached patch that converts add_path's
> cost comparisons to "fuzzy" comparisons --- two paths are considered to
> have the same cost if it differs by less than 1% of the smaller
> total_cost.  I found that this reduced the planning time of Eric's
> query by about 40%, without changing the resulting plan.  On more
> typical queries where the relations all have different statistics,
> I doubt it would have as much effect, but I'm inclined to apply the
> change anyway.

It looks like a great idea to me...
> + 	 * XXX does this percentage need to be user-configurable?

...but I think the answer to the above is yes.

Joe

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Tom Lane
Дата:
FAQ