Re: Our trial to TPC-DS but optimizer made unreasonable plan

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Our trial to TPC-DS but optimizer made unreasonable plan
Дата
Msg-id CAM-w4HM9USjC-gWRaDGBgZOxD20sF_-X6arit62kufUZZ3xvyA@mail.gmail.com
обсуждение исходный текст
Ответ на Our trial to TPC-DS but optimizer made unreasonable plan  (Kouhei Kaigai <kaigai@ak.jp.nec.com>)
Ответы Re: Our trial to TPC-DS but optimizer made unreasonable plan  (Kouhei Kaigai <kaigai@ak.jp.nec.com>)
Список pgsql-hackers
On Thu, Aug 13, 2015 at 2:49 AM, Kouhei Kaigai <kaigai@ak.jp.nec.com> wrote:
> In fact, cost of HashJoin underlying Sort node is:
>     ->  Hash Join  (cost=621264.91..752685.48 rows=1 width=132)
>
> On the other hands, NestedLoop on same place is:
>     ->  Nested Loop  (cost=0.00..752732.26 rows=1 width=132)
>
> Probably, small GUC adjustment may make optimizer to prefer HashJoin towards
> these kind of queries.

With that kind of discrepancy I doubt adjusting GUCs will be sufficient

> Do you have a good idea?

Do you have EXPLAIN ANALYZE from the plan that finishes? Are there any
row estimates that are way off?


-- 
greg



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

Предыдущее
От: "Syed, Rahila"
Дата:
Сообщение: Re: [PROPOSAL] VACUUM Progress Checker.
Следующее
От: Kouhei Kaigai
Дата:
Сообщение: Re: Our trial to TPC-DS but optimizer made unreasonable plan