Re: Very bad plan when using VIEW and IN (SELECT...*)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Very bad plan when using VIEW and IN (SELECT...*)
Дата
Msg-id 24217.1281711817@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Very bad plan when using VIEW and IN (SELECT...*)  ("Carlo Stonebanks" <stonec.register@sympatico.ca>)
Список pgsql-general
"Carlo Stonebanks" <stonec.register@sympatico.ca> writes:
>>> Having said that, modern versions of the planner seem to deal reasonably
>>> well with this situation as long as they're being asked to push the
>>> condition through a UNION ALL.  Do you really need a UNION in that view?

> This is PG v 8.3 - do you mean "modern" compared to that?

When I was testing it yesterday it seemed that versions back to 8.2
generated acceptable plans, but the results might depend on details you
didn't show us.  Try it and see.

            regards, tom lane

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

Предыдущее
От: Andre Lopes
Дата:
Сообщение: How to add permissions to views?
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Compression on SSL links?