pgsql: Remove cost_hashjoin's very ancient hack to discourage (once,

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Remove cost_hashjoin's very ancient hack to discourage (once,
Дата
Msg-id 20070108160931.C7CF99FB1C4@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Remove cost_hashjoin's very ancient hack to discourage (once, entirely forbid)
hash joins with the estimated-larger relation on the inside.  There are
several cases where doing that makes perfect sense, and in cases where it
doesn't, the regular cost computation really ought to be able to figure that
out.  Make some marginal tweaks in said computation to try to get results
approximating reality a bit better.  Per an example from Shane Ambler.

Also, fix an oversight in the original patch to add seq_page_cost: the costs
of spilling a hash join to disk should be scaled by seq_page_cost.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/optimizer/path:
        costsize.c (r1.169.2.1 -> r1.169.2.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/costsize.c.diff?r1=1.169.2.1&r2=1.169.2.2)

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

Предыдущее
От: Jeremy Drake
Дата:
Сообщение: Re: pgsql: Widen the money type to 64 bits.
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Remove cost_hashjoin's very ancient hack to discourage (once,