Re: [HACKERS] Optimizer speed and GEQO (was: nested loops in joins)

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Optimizer speed and GEQO (was: nested loops in joins)
Дата
Msg-id 199902052223.RAA17124@candle.pha.pa.us
обсуждение исходный текст
Ответ на Optimizer speed and GEQO (was: nested loops in joins)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> I have been looking at optimizer runtime using Charles Hornberger's
> example case, and what I find is that the number of tables involved in
> the query is a very inadequate predictor of the optimizer's runtime.
> Thus, it's not surprising that we are getting poor results from using
> number of tables as the GEQO threshold measure.

Still digging into the optimizer, but if you want some real eye-opening
stuff, set OPTIMIZER_DEBUG and look in the postmaster log.  A six-table
join generates 55k lines of debug info, very nicely formatted.  It shows
what we are up against.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Erich Stamberger
Дата:
Сообщение: char(n) default '' crashes server
Следующее
От: gjerde@icebox.org
Дата:
Сообщение: Problems with >2GB tables on Linux 2.0