Re: Union within View vs.Union of Views

Поиск
Список
Период
Сортировка
От Jeff Larsen
Тема Re: Union within View vs.Union of Views
Дата
Msg-id d1f9b6f00711031857s2972e92dgcedb209233f2485a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Union within View vs.Union of Views  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
[[ Oops, still not used to gmail. Accidentally posted this straight to
Tom and not the list]]

> There are a bunch of special cases where it can't do that, though.
> Look into src/backend/optimizer/path/allpaths.c, particularly
> subquery_is_pushdown_safe:

My case probably fits the 'special case' description. Not all the
columns in each subquery matched up, so there were NULL::text
placeholders in some spots in the SELECT. In the case where
performance got bad, one of those columns was included in the
application's WHERE clause.

That's a good enough explanation for me. I'll spare you the gory
details of my tables, unless a developer wants to have a look at it
off-list.

Jeff

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: "MixedCase sensitive quoted" names
Следующее
От: "Jeff Larsen"
Дата:
Сообщение: Re: Union within View vs.Union of Views