| От | Tom Lane |
|---|---|
| Тема | Re: Questions about horizontal partitioning |
| Дата | |
| Msg-id | 12306.1168383430@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Questions about horizontal partitioning (Bruno Wolff III <bruno@wolff.to>) |
| Список | pgsql-general |
Bruno Wolff III <bruno@wolff.to> writes:
> In this case the test would only be applied when no columns were being used
> in a table being joined to. Since that is also an unusual case, if that case
> could be quickly checked for, then it might conceivably be worth doing the
> more expensive test for the proper not null foreign key relation and unique
> constraint.
Yeah. Right offhand I think that would be fairly expensive too :-(.
The problem is that the query *DOES* have a reference to at least one
column of the wide table, namely its join key. So you'd have to
distinguish whether any references appear "above" the join. In the
current planner structure I think that this information is computed,
but not until it's far too late to be removing joins from the tree.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера