Re: [SQL] qurey plan and indices

Поиск
Список
Период
Сортировка
От MESZAROS Attila
Тема Re: [SQL] qurey plan and indices
Дата
Msg-id Pine.LNX.3.96.990805165414.26220B-100000@chiara.csoma.elte.hu
обсуждение исходный текст
Ответ на Re: [SQL] qurey plan and indices  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
> However, the *real* problem here is that the inner query is treated
> as a subplan, which means it is re-evaluated for each tuple scanned
> by the outer query.  This is not very bright; the system ought to
> notice that the inner query does not depend on the state of the
> outer query, and do it only once.  There is already a notion of
> InitPlan vs. SubPlan.  I'm not sure why this case is being classified
> as a SubPlan, but it sure looks like it ought to be done as an
> InitPlan...So this means, it is a bug somewhere in the planner?who should we report this??

Attila

any workarounds?
[better than temptables?]



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

Предыдущее
От: MESZAROS Attila
Дата:
Сообщение: Re: [SQL] qurey plan and indices
Следующее
От: rob caSSon
Дата:
Сообщение: Re: [SQL] primary key view failure