Re: [GENERAL] Queries joining views

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Queries joining views
Дата
Msg-id 18053.1156337432@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] Queries joining views  (Alban Hertroys <alban@magproductions.nl>)
Список pgsql-hackers
Alban Hertroys <alban@magproductions.nl> writes:
> Mm_object is always larger than any other table in the database, as
> every table joins with (different) records in it to determine it's otype
> and owner. So I don't understand how a fraction of any of those tables
> could be larger than mm_object as a whole...

No, I said a larger fraction, not a larger absolute number of tuples.
The problem is that because mm_product contains only very small values
of "number", a mergejoin looks like a great way to join it to mm_object:
only the first 5% of mm_object will need to be scanned.  The bug
consists in applying that 5% number to mm_insrel, for which it's not
correct.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Tricky bugs in concurrent index build
Следующее
От: Bernd Helmle
Дата:
Сообщение: Re: [PATCHES] COPY view