Re: Stats for multi-column indexes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Stats for multi-column indexes
Дата
Msg-id 15589.1174412946@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Stats for multi-column indexes  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
>> Actually, I think you don't particularly need stats for that in most
>> cases --- if the planner simply took note that the FK relationship
>> exists, it would know that each row of the FK side joins to exactly
>> one row of the PK side, which in typical cases is sufficient.

> Is it?  What about the other direction?

I recall that we had decided at the Greenplum meeting last year that
we could use a better heuristic if we noted that a join was being done
on an FK-and-PK combination, but I don't recall the details right at
the moment.  Did anyone take notes?
        regards, tom lane


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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Stats for multi-column indexes
Следующее
От: Benjamin Arai
Дата:
Сообщение: SoC Ideas for people looking for projects